feat: check that VirtualTableScan field names correspond to schema #761
pr.yml
on: pull_request
Build and Test Java
2m 38s
cyclonedx-sbom
1m 20s
Check editorconfig
4s
Lint commits for semantic-release
9s
Security validation
4s
Dry-run release
20s
Matrix: Build Isthmus Native Image
Matrix: osv-scanner
Annotations
2 errors and 1 warning
Build and Test Java:
task ':core:spotlessJavaCheck'#L1
Execution failed for task ':core:spotlessJavaCheck':
The following files had format violations:
src/main/java/io/substrait/relation/VirtualTableScan.java
@@ -25,7 +25,8 @@
··protected·void·check()·{
····var·names·=·getInitialSchema().names();
-····assert·names.size()·==·NamedFieldCountingTypeVisitor.countNames(this.getInitialSchema().struct());
+····assert·names.size()
+········==·NamedFieldCountingTypeVisitor.countNames(this.getInitialSchema().struct());
····var·rows·=·getRows();
····assert·rows.size()·>·0
@@ -47,11 +48,12 @@
··private·static·class·NamedFieldCountingTypeVisitor
······implements·TypeVisitor<Integer,·RuntimeException>·{
-······private·static·final·NamedFieldCountingTypeVisitor·VISITOR·=·new·NamedFieldCountingTypeVisitor();
+····private·static·final·NamedFieldCountingTypeVisitor·VISITOR·=
+········new·NamedFieldCountingTypeVisitor();
-······private·static·Integer·countNames(Type·type)·{
-··········return·type.accept(VISITOR);
-······}
+····private·static·Integer·countNames(Type·type)·{
+······return·type.accept(VISITOR);
+····}
····@OverRide
····public·Integer·visit(Type.Bool·type)·throws·RuntimeException·{
Run './gradlew :core:spotlessApply' to fix these violations.
at com.diffplug.gradle.spotless.SpotlessCheck.performAction(SpotlessCheck.java:111)
at com.diffplug.gradle.spotless.SpotlessCheck.performAction(SpotlessCheck.java:53)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:125)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:58)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:51)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:29)
at org.gradle.api.internal.tasks.execution.TaskExecution$3.run(TaskExecution.java:244)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:166)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
at org.gradle.api.internal.tasks.execution.TaskExecution.executeAction(TaskExecution.java:229)
at org.gradle.api.internal.tasks.execution.TaskExecution.executeActions(TaskExecution.java:212)
at org.gradle.api.internal.tasks.execution.TaskExecution.executeWithPreviousOutputFiles(TaskExecution.java:195)
at org.gradle.api.internal.tasks.execution.TaskExecution.execute(TaskExecution.java:162)
at org.gradle.internal.execution.steps.ExecuteStep.executeInternal(ExecuteStep.java:105)
at org.gradle.internal.execution.steps.ExecuteStep.access$000(ExecuteStep.java:44)
at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:59)
at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:56)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:209)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(D
|
Build and Test Java
Process completed with exit code 1.
|
Check editorconfig
The following actions uses Node.js version which is deprecated and will be forced to run on node20: editorconfig-checker/action-editorconfig-checker@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
cyclonedx-sbom
Expired
|
66 KB |
|