Skip to content

CALCITE-6346 Cast is lost during pushdown to JDBC #125

CALCITE-6346 Cast is lost during pushdown to JDBC

CALCITE-6346 Cast is lost during pushdown to JDBC #125

Triggered via push April 23, 2024 10:12
Status Failure
Total duration 9m 50s
Artifacts

main.yml

on: push
Windows (JDK 8)
6m 7s
Windows (JDK 8)
Windows (JDK 17)
4m 48s
Windows (JDK 17)
Linux (JDK 8), oldest Guava, America/New_York Timezone
3m 33s
Linux (JDK 8), oldest Guava, America/New_York Timezone
Linux (JDK 8), latest Guava, America/New_York Timezone
4m 35s
Linux (JDK 8), latest Guava, America/New_York Timezone
Linux (JDK 11), Pacific/Chatham Timezone
3m 24s
Linux (JDK 11), Pacific/Chatham Timezone
Linux (JDK 17)
3m 26s
Linux (JDK 17)
Linux (JDK 19)
2m 59s
Linux (JDK 19)
Linux (JDK 11), Avatica main
4m 21s
Linux (JDK 11), Avatica main
macOS (JDK 19)
6m 28s
macOS (JDK 19)
Error Prone (JDK 11), latest Guava
2m 25s
Error Prone (JDK 11), latest Guava
CheckerFramework (JDK 11)
9m 29s
CheckerFramework (JDK 11)
CheckerFramework (JDK 11), oldest Guava
9m 38s
CheckerFramework (JDK 11), oldest Guava
Linux (JDK 8) Slow Tests
0s
Linux (JDK 8) Slow Tests
Druid Tests
6m 32s
Druid Tests
Fit to window
Zoom out
Zoom in

Annotations

44 errors and 26 warnings
Error Prone (JDK 11), latest Guava: task ':core:compileJava'#L1
Execution failed for task ':core:compileJava': org.gradle.api.internal.tasks.compile.CompilationFailedException: Compilation failed; see the compiler error output for details. at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:58) at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:41) at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.delegateAndHandleErrors(NormalizingJavaCompiler.java:98) at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:52) at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:38) at org.gradle.api.internal.tasks.compile.AnnotationProcessorDiscoveringCompiler.execute(AnnotationProcessorDiscoveringCompiler.java:51) at org.gradle.api.internal.tasks.compile.AnnotationProcessorDiscoveringCompiler.execute(AnnotationProcessorDiscoveringCompiler.java:37) at org.gradle.api.internal.tasks.compile.ModuleApplicationNameWritingCompiler.execute(ModuleApplicationNameWritingCompiler.java:46) at org.gradle.api.internal.tasks.compile.ModuleApplicationNameWritingCompiler.execute(ModuleApplicationNameWritingCompiler.java:36) at org.gradle.jvm.toolchain.internal.DefaultToolchainJavaCompiler.execute(DefaultToolchainJavaCompiler.java:57) at org.gradle.api.tasks.compile.JavaCompile.lambda$createToolchainCompiler$1(JavaCompile.java:237) at org.gradle.api.internal.tasks.compile.CleaningJavaCompiler.execute(CleaningJavaCompiler.java:53) at org.gradle.api.internal.tasks.compile.incremental.IncrementalCompilerFactory.lambda$createRebuildAllCompiler$0(IncrementalCompilerFactory.java:52) at org.gradle.api.internal.tasks.compile.incremental.SelectiveCompiler.execute(SelectiveCompiler.java:70) at org.gradle.api.internal.tasks.compile.incremental.SelectiveCompiler.execute(SelectiveCompiler.java:44) at org.gradle.api.internal.tasks.compile.incremental.IncrementalResultStoringCompiler.execute(IncrementalResultStoringCompiler.java:66) at org.gradle.api.internal.tasks.compile.incremental.IncrementalResultStoringCompiler.execute(IncrementalResultStoringCompiler.java:52) at org.gradle.api.internal.tasks.compile.CompileJavaBuildOperationReportingCompiler$2.call(CompileJavaBuildOperationReportingCompiler.java:59) at org.gradle.api.internal.tasks.compile.CompileJavaBuildOperationReportingCompiler$2.call(CompileJavaBuildOperationReportingCompiler.java:51) at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204) at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199) 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:157) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59) at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53) at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73) at org.gradle.api.internal.tasks.compile.CompileJavaBuildOperationReportingCompiler.execute(CompileJavaBuildOperationReportingCompiler.java:51) at org.gradle.api.tasks.compile.JavaCompile.performCompilation(JavaCompile.java:288) at org.gradle.api.tasks.compile.JavaCompile.performIncrementalCompilation(JavaCompile.java:170) at org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:148) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.j
Error Prone (JDK 11), latest Guava
Execution failed for task ':core:compileJava'. > Compilation failed; see the compiler error output for details.
Linux (JDK 19): task ':core:autostyleJavaCheck'#L1
Execution failed for task ':core:autostyleJavaCheck': See 'What went wrong' below
Linux (JDK 19)
Execution failed for task ':core:autostyleJavaCheck'. > The following files have format violations: core/src/main/java/org/apache/calcite/rel/metadata/RelMdFieldsTrimmable.java @@ -16,47 +16,7 @@ */ package org.apache.calcite.rel.metadata; -import org.apache.calcite.plan.RelOptPredicateList; -import org.apache.calcite.plan.volcano.RelSubset; import org.apache.calcite.rel.RelNode; -import org.apache.calcite.rel.SingleRel; -import org.apache.calcite.rel.convert.Converter; -import org.apache.calcite.rel.core.Aggregate; -import org.apache.calcite.rel.core.Calc; -import org.apache.calcite.rel.core.Correlate; -import org.apache.calcite.rel.core.Exchange; -import org.apache.calcite.rel.core.Filter; -import org.apache.calcite.rel.core.Intersect; -import org.apache.calcite.rel.core.Join; -import org.apache.calcite.rel.core.JoinInfo; -import org.apache.calcite.rel.core.JoinRelType; -import org.apache.calcite.rel.core.Minus; -import org.apache.calcite.rel.core.Project; -import org.apache.calcite.rel.core.SetOp; -import org.apache.calcite.rel.core.Sort; -import org.apache.calcite.rel.core.TableModify; -import org.apache.calcite.rel.core.TableScan; -import org.apache.calcite.rel.core.Values; -import org.apache.calcite.rel.type.RelDataType; -import org.apache.calcite.rel.type.RelDataTypeFactory; -import org.apache.calcite.rex.RexCall; -import org.apache.calcite.rex.RexInputRef; -import org.apache.calcite.rex.RexLiteral; -import org.apache.calcite.rex.RexNode; -import org.apache.calcite.rex.RexProgram; -import org.apache.calcite.sql.fun.SqlStdOperatorTable; -import org.apache.calcite.util.ImmutableBitSet; -import org.apache.calcite.util.Pair; -import org.apache.calcite.util.Util; - -import com.google.common.collect.ImmutableList; - -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.util.ArrayList; -import java.util.HashSet; -import java.util.List; -import java.util.Set; /** * RelMdFieldsTrimmable supplies a default implementation of core/src/main/java/org/apache/calcite/rel/rel2sql/SqlImplementor.java @@ -2152,20 +2152,16 @@ public DynamicParamVisitor() { } ... (22 more lines that didn't fit) Violations also present in: core/src/main/java/org/apache/calcite/sql2rel/RelFieldTrimmer.java core/src/main/java/org/apache/calcite/util/BuiltInMethod.java core/src/test/java/org/apache/calcite/test/JdbcTest.java You might want to adjust -PmaxCheckMessageLines=50 -PmaxFilesToList=10 -PminLinesPerFile=4 to see more violations Run './gradlew autostyleApply' to fix the violations.
Linux (JDK 11), Pacific/Chatham Timezone: task ':core:autostyleJavaCheck'#L1
Execution failed for task ':core:autostyleJavaCheck': See 'What went wrong' below
Linux (JDK 11), Pacific/Chatham Timezone
Execution failed for task ':core:autostyleJavaCheck'. > The following files have format violations: core/src/main/java/org/apache/calcite/rel/metadata/RelMdFieldsTrimmable.java @@ -16,47 +16,7 @@ */ package org.apache.calcite.rel.metadata; -import org.apache.calcite.plan.RelOptPredicateList; -import org.apache.calcite.plan.volcano.RelSubset; import org.apache.calcite.rel.RelNode; -import org.apache.calcite.rel.SingleRel; -import org.apache.calcite.rel.convert.Converter; -import org.apache.calcite.rel.core.Aggregate; -import org.apache.calcite.rel.core.Calc; -import org.apache.calcite.rel.core.Correlate; -import org.apache.calcite.rel.core.Exchange; -import org.apache.calcite.rel.core.Filter; -import org.apache.calcite.rel.core.Intersect; -import org.apache.calcite.rel.core.Join; -import org.apache.calcite.rel.core.JoinInfo; -import org.apache.calcite.rel.core.JoinRelType; -import org.apache.calcite.rel.core.Minus; -import org.apache.calcite.rel.core.Project; -import org.apache.calcite.rel.core.SetOp; -import org.apache.calcite.rel.core.Sort; -import org.apache.calcite.rel.core.TableModify; -import org.apache.calcite.rel.core.TableScan; -import org.apache.calcite.rel.core.Values; -import org.apache.calcite.rel.type.RelDataType; -import org.apache.calcite.rel.type.RelDataTypeFactory; -import org.apache.calcite.rex.RexCall; -import org.apache.calcite.rex.RexInputRef; -import org.apache.calcite.rex.RexLiteral; -import org.apache.calcite.rex.RexNode; -import org.apache.calcite.rex.RexProgram; -import org.apache.calcite.sql.fun.SqlStdOperatorTable; -import org.apache.calcite.util.ImmutableBitSet; -import org.apache.calcite.util.Pair; -import org.apache.calcite.util.Util; - -import com.google.common.collect.ImmutableList; - -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.util.ArrayList; -import java.util.HashSet; -import java.util.List; -import java.util.Set; /** * RelMdFieldsTrimmable supplies a default implementation of core/src/main/java/org/apache/calcite/rel/rel2sql/SqlImplementor.java @@ -2152,20 +2152,16 @@ public DynamicParamVisitor() { } ... (22 more lines that didn't fit) Violations also present in: core/src/main/java/org/apache/calcite/sql2rel/RelFieldTrimmer.java core/src/main/java/org/apache/calcite/util/BuiltInMethod.java core/src/test/java/org/apache/calcite/test/JdbcTest.java You might want to adjust -PmaxCheckMessageLines=50 -PmaxFilesToList=10 -PminLinesPerFile=4 to see more violations Run './gradlew autostyleApply' to fix the violations.
Linux (JDK 17): task ':core:autostyleJavaCheck'#L1
Execution failed for task ':core:autostyleJavaCheck': See 'What went wrong' below
Linux (JDK 17)
Execution failed for task ':core:autostyleJavaCheck'. > The following files have format violations: core/src/main/java/org/apache/calcite/rel/metadata/RelMdFieldsTrimmable.java @@ -16,47 +16,7 @@ */ package org.apache.calcite.rel.metadata; -import org.apache.calcite.plan.RelOptPredicateList; -import org.apache.calcite.plan.volcano.RelSubset; import org.apache.calcite.rel.RelNode; -import org.apache.calcite.rel.SingleRel; -import org.apache.calcite.rel.convert.Converter; -import org.apache.calcite.rel.core.Aggregate; -import org.apache.calcite.rel.core.Calc; -import org.apache.calcite.rel.core.Correlate; -import org.apache.calcite.rel.core.Exchange; -import org.apache.calcite.rel.core.Filter; -import org.apache.calcite.rel.core.Intersect; -import org.apache.calcite.rel.core.Join; -import org.apache.calcite.rel.core.JoinInfo; -import org.apache.calcite.rel.core.JoinRelType; -import org.apache.calcite.rel.core.Minus; -import org.apache.calcite.rel.core.Project; -import org.apache.calcite.rel.core.SetOp; -import org.apache.calcite.rel.core.Sort; -import org.apache.calcite.rel.core.TableModify; -import org.apache.calcite.rel.core.TableScan; -import org.apache.calcite.rel.core.Values; -import org.apache.calcite.rel.type.RelDataType; -import org.apache.calcite.rel.type.RelDataTypeFactory; -import org.apache.calcite.rex.RexCall; -import org.apache.calcite.rex.RexInputRef; -import org.apache.calcite.rex.RexLiteral; -import org.apache.calcite.rex.RexNode; -import org.apache.calcite.rex.RexProgram; -import org.apache.calcite.sql.fun.SqlStdOperatorTable; -import org.apache.calcite.util.ImmutableBitSet; -import org.apache.calcite.util.Pair; -import org.apache.calcite.util.Util; - -import com.google.common.collect.ImmutableList; - -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.util.ArrayList; -import java.util.HashSet; -import java.util.List; -import java.util.Set; /** * RelMdFieldsTrimmable supplies a default implementation of core/src/main/java/org/apache/calcite/rel/rel2sql/SqlImplementor.java @@ -2152,20 +2152,16 @@ public DynamicParamVisitor() { } ... (22 more lines that didn't fit) Violations also present in: core/src/main/java/org/apache/calcite/sql2rel/RelFieldTrimmer.java core/src/main/java/org/apache/calcite/util/BuiltInMethod.java core/src/test/java/org/apache/calcite/test/JdbcTest.java You might want to adjust -PmaxCheckMessageLines=50 -PmaxFilesToList=10 -PminLinesPerFile=4 to see more violations Run './gradlew autostyleApply' to fix the violations.
Linux (JDK 8), oldest Guava, America/New_York Timezone: task ':core:autostyleJavaCheck'#L1
Execution failed for task ':core:autostyleJavaCheck': See 'What went wrong' below
Linux (JDK 8), oldest Guava, America/New_York Timezone
Execution failed for task ':core:autostyleJavaCheck'. > The following files have format violations: core/src/main/java/org/apache/calcite/rel/metadata/RelMdFieldsTrimmable.java @@ -16,47 +16,7 @@ */ package org.apache.calcite.rel.metadata; -import org.apache.calcite.plan.RelOptPredicateList; -import org.apache.calcite.plan.volcano.RelSubset; import org.apache.calcite.rel.RelNode; -import org.apache.calcite.rel.SingleRel; -import org.apache.calcite.rel.convert.Converter; -import org.apache.calcite.rel.core.Aggregate; -import org.apache.calcite.rel.core.Calc; -import org.apache.calcite.rel.core.Correlate; -import org.apache.calcite.rel.core.Exchange; -import org.apache.calcite.rel.core.Filter; -import org.apache.calcite.rel.core.Intersect; -import org.apache.calcite.rel.core.Join; -import org.apache.calcite.rel.core.JoinInfo; -import org.apache.calcite.rel.core.JoinRelType; -import org.apache.calcite.rel.core.Minus; -import org.apache.calcite.rel.core.Project; -import org.apache.calcite.rel.core.SetOp; -import org.apache.calcite.rel.core.Sort; -import org.apache.calcite.rel.core.TableModify; -import org.apache.calcite.rel.core.TableScan; -import org.apache.calcite.rel.core.Values; -import org.apache.calcite.rel.type.RelDataType; -import org.apache.calcite.rel.type.RelDataTypeFactory; -import org.apache.calcite.rex.RexCall; -import org.apache.calcite.rex.RexInputRef; -import org.apache.calcite.rex.RexLiteral; -import org.apache.calcite.rex.RexNode; -import org.apache.calcite.rex.RexProgram; -import org.apache.calcite.sql.fun.SqlStdOperatorTable; -import org.apache.calcite.util.ImmutableBitSet; -import org.apache.calcite.util.Pair; -import org.apache.calcite.util.Util; - -import com.google.common.collect.ImmutableList; - -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.util.ArrayList; -import java.util.HashSet; -import java.util.List; -import java.util.Set; /** * RelMdFieldsTrimmable supplies a default implementation of core/src/main/java/org/apache/calcite/rel/rel2sql/SqlImplementor.java @@ -2152,20 +2152,16 @@ public DynamicParamVisitor() { } ... (22 more lines that didn't fit) Violations also present in: core/src/main/java/org/apache/calcite/sql2rel/RelFieldTrimmer.java core/src/main/java/org/apache/calcite/util/BuiltInMethod.java core/src/test/java/org/apache/calcite/test/JdbcTest.java You might want to adjust -PmaxCheckMessageLines=50 -PmaxFilesToList=10 -PminLinesPerFile=4 to see more violations Run './gradlew autostyleApply' to fix the violations.
Linux (JDK 11), Avatica main: task ':core:autostyleJavaCheck'#L1
Execution failed for task ':core:autostyleJavaCheck': See 'What went wrong' below
Linux (JDK 11), Avatica main
Execution failed for task ':core:autostyleJavaCheck'. > The following files have format violations: core/src/main/java/org/apache/calcite/rel/metadata/RelMdFieldsTrimmable.java @@ -16,47 +16,7 @@ */ package org.apache.calcite.rel.metadata; -import org.apache.calcite.plan.RelOptPredicateList; -import org.apache.calcite.plan.volcano.RelSubset; import org.apache.calcite.rel.RelNode; -import org.apache.calcite.rel.SingleRel; -import org.apache.calcite.rel.convert.Converter; -import org.apache.calcite.rel.core.Aggregate; -import org.apache.calcite.rel.core.Calc; -import org.apache.calcite.rel.core.Correlate; -import org.apache.calcite.rel.core.Exchange; -import org.apache.calcite.rel.core.Filter; -import org.apache.calcite.rel.core.Intersect; -import org.apache.calcite.rel.core.Join; -import org.apache.calcite.rel.core.JoinInfo; -import org.apache.calcite.rel.core.JoinRelType; -import org.apache.calcite.rel.core.Minus; -import org.apache.calcite.rel.core.Project; -import org.apache.calcite.rel.core.SetOp; -import org.apache.calcite.rel.core.Sort; -import org.apache.calcite.rel.core.TableModify; -import org.apache.calcite.rel.core.TableScan; -import org.apache.calcite.rel.core.Values; -import org.apache.calcite.rel.type.RelDataType; -import org.apache.calcite.rel.type.RelDataTypeFactory; -import org.apache.calcite.rex.RexCall; -import org.apache.calcite.rex.RexInputRef; -import org.apache.calcite.rex.RexLiteral; -import org.apache.calcite.rex.RexNode; -import org.apache.calcite.rex.RexProgram; -import org.apache.calcite.sql.fun.SqlStdOperatorTable; -import org.apache.calcite.util.ImmutableBitSet; -import org.apache.calcite.util.Pair; -import org.apache.calcite.util.Util; - -import com.google.common.collect.ImmutableList; - -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.util.ArrayList; -import java.util.HashSet; -import java.util.List; -import java.util.Set; /** * RelMdFieldsTrimmable supplies a default implementation of core/src/main/java/org/apache/calcite/rel/rel2sql/SqlImplementor.java @@ -2152,20 +2152,16 @@ public DynamicParamVisitor() { } ... (22 more lines that didn't fit) Violations also present in: core/src/main/java/org/apache/calcite/sql2rel/RelFieldTrimmer.java core/src/main/java/org/apache/calcite/util/BuiltInMethod.java core/src/test/java/org/apache/calcite/test/JdbcTest.java You might want to adjust -PmaxCheckMessageLines=50 -PmaxFilesToList=10 -PminLinesPerFile=4 to see more violations Run './gradlew autostyleApply' to fix the violations.
Linux (JDK 8), latest Guava, America/New_York Timezone: task ':core:autostyleJavaCheck'#L1
Execution failed for task ':core:autostyleJavaCheck': See 'What went wrong' below
Linux (JDK 8), latest Guava, America/New_York Timezone
Execution failed for task ':core:autostyleJavaCheck'. > The following files have format violations: core/src/main/java/org/apache/calcite/rel/metadata/RelMdFieldsTrimmable.java @@ -16,47 +16,7 @@ */ package org.apache.calcite.rel.metadata; -import org.apache.calcite.plan.RelOptPredicateList; -import org.apache.calcite.plan.volcano.RelSubset; import org.apache.calcite.rel.RelNode; -import org.apache.calcite.rel.SingleRel; -import org.apache.calcite.rel.convert.Converter; -import org.apache.calcite.rel.core.Aggregate; -import org.apache.calcite.rel.core.Calc; -import org.apache.calcite.rel.core.Correlate; -import org.apache.calcite.rel.core.Exchange; -import org.apache.calcite.rel.core.Filter; -import org.apache.calcite.rel.core.Intersect; -import org.apache.calcite.rel.core.Join; -import org.apache.calcite.rel.core.JoinInfo; -import org.apache.calcite.rel.core.JoinRelType; -import org.apache.calcite.rel.core.Minus; -import org.apache.calcite.rel.core.Project; -import org.apache.calcite.rel.core.SetOp; -import org.apache.calcite.rel.core.Sort; -import org.apache.calcite.rel.core.TableModify; -import org.apache.calcite.rel.core.TableScan; -import org.apache.calcite.rel.core.Values; -import org.apache.calcite.rel.type.RelDataType; -import org.apache.calcite.rel.type.RelDataTypeFactory; -import org.apache.calcite.rex.RexCall; -import org.apache.calcite.rex.RexInputRef; -import org.apache.calcite.rex.RexLiteral; -import org.apache.calcite.rex.RexNode; -import org.apache.calcite.rex.RexProgram; -import org.apache.calcite.sql.fun.SqlStdOperatorTable; -import org.apache.calcite.util.ImmutableBitSet; -import org.apache.calcite.util.Pair; -import org.apache.calcite.util.Util; - -import com.google.common.collect.ImmutableList; - -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.util.ArrayList; -import java.util.HashSet; -import java.util.List; -import java.util.Set; /** * RelMdFieldsTrimmable supplies a default implementation of core/src/main/java/org/apache/calcite/rel/rel2sql/SqlImplementor.java @@ -2152,20 +2152,16 @@ public DynamicParamVisitor() { } ... (22 more lines that didn't fit) Violations also present in: core/src/main/java/org/apache/calcite/sql2rel/RelFieldTrimmer.java core/src/main/java/org/apache/calcite/util/BuiltInMethod.java core/src/test/java/org/apache/calcite/test/JdbcTest.java You might want to adjust -PmaxCheckMessageLines=50 -PmaxFilesToList=10 -PminLinesPerFile=4 to see more violations Run './gradlew autostyleApply' to fix the violations.
Windows (JDK 17): task ':core:autostyleJavaCheck'#L1
Execution failed for task ':core:autostyleJavaCheck': See 'What went wrong' below
Windows (JDK 17)
Execution failed for task ':core:autostyleJavaCheck'. > The following files have format violations: core\src\main\java\org\apache\calcite\rel\metadata\RelMdFieldsTrimmable.java @@ -16,47 +16,7 @@ */ package org.apache.calcite.rel.metadata; -import org.apache.calcite.plan.RelOptPredicateList; -import org.apache.calcite.plan.volcano.RelSubset; import org.apache.calcite.rel.RelNode; -import org.apache.calcite.rel.SingleRel; -import org.apache.calcite.rel.convert.Converter; -import org.apache.calcite.rel.core.Aggregate; -import org.apache.calcite.rel.core.Calc; -import org.apache.calcite.rel.core.Correlate; -import org.apache.calcite.rel.core.Exchange; -import org.apache.calcite.rel.core.Filter; -import org.apache.calcite.rel.core.Intersect; -import org.apache.calcite.rel.core.Join; -import org.apache.calcite.rel.core.JoinInfo; -import org.apache.calcite.rel.core.JoinRelType; -import org.apache.calcite.rel.core.Minus; -import org.apache.calcite.rel.core.Project; -import org.apache.calcite.rel.core.SetOp; -import org.apache.calcite.rel.core.Sort; -import org.apache.calcite.rel.core.TableModify; -import org.apache.calcite.rel.core.TableScan; -import org.apache.calcite.rel.core.Values; -import org.apache.calcite.rel.type.RelDataType; -import org.apache.calcite.rel.type.RelDataTypeFactory; -import org.apache.calcite.rex.RexCall; -import org.apache.calcite.rex.RexInputRef; -import org.apache.calcite.rex.RexLiteral; -import org.apache.calcite.rex.RexNode; -import org.apache.calcite.rex.RexProgram; -import org.apache.calcite.sql.fun.SqlStdOperatorTable; -import org.apache.calcite.util.ImmutableBitSet; -import org.apache.calcite.util.Pair; -import org.apache.calcite.util.Util; - -import com.google.common.collect.ImmutableList; - -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.util.ArrayList; -import java.util.HashSet; -import java.util.List; -import java.util.Set; /** * RelMdFieldsTrimmable supplies a default implementation of core\src\main\java\org\apache\calcite\rel\rel2sql\SqlImplementor.java @@ -2152,20 +2152,16 @@ public DynamicParamVisitor() { } ... (22 more lines that didn't fit) Violations also present in: core\src\main\java\org\apache\calcite\sql2rel\RelFieldTrimmer.java core\src\main\java\org\apache\calcite\util\BuiltInMethod.java core\src\test\java\org\apache\calcite\test\JdbcTest.java You might want to adjust -PmaxCheckMessageLines=50 -PmaxFilesToList=10 -PminLinesPerFile=4 to see more violations Run './gradlew autostyleApply' to fix the violations.
Windows (JDK 8): task ':core:autostyleJavaCheck'#L1
Execution failed for task ':core:autostyleJavaCheck': See 'What went wrong' below
Windows (JDK 8)
Execution failed for task ':core:autostyleJavaCheck'. > The following files have format violations: core\src\main\java\org\apache\calcite\rel\metadata\RelMdFieldsTrimmable.java @@ -16,47 +16,7 @@ */ package org.apache.calcite.rel.metadata; -import org.apache.calcite.plan.RelOptPredicateList; -import org.apache.calcite.plan.volcano.RelSubset; import org.apache.calcite.rel.RelNode; -import org.apache.calcite.rel.SingleRel; -import org.apache.calcite.rel.convert.Converter; -import org.apache.calcite.rel.core.Aggregate; -import org.apache.calcite.rel.core.Calc; -import org.apache.calcite.rel.core.Correlate; -import org.apache.calcite.rel.core.Exchange; -import org.apache.calcite.rel.core.Filter; -import org.apache.calcite.rel.core.Intersect; -import org.apache.calcite.rel.core.Join; -import org.apache.calcite.rel.core.JoinInfo; -import org.apache.calcite.rel.core.JoinRelType; -import org.apache.calcite.rel.core.Minus; -import org.apache.calcite.rel.core.Project; -import org.apache.calcite.rel.core.SetOp; -import org.apache.calcite.rel.core.Sort; -import org.apache.calcite.rel.core.TableModify; -import org.apache.calcite.rel.core.TableScan; -import org.apache.calcite.rel.core.Values; -import org.apache.calcite.rel.type.RelDataType; -import org.apache.calcite.rel.type.RelDataTypeFactory; -import org.apache.calcite.rex.RexCall; -import org.apache.calcite.rex.RexInputRef; -import org.apache.calcite.rex.RexLiteral; -import org.apache.calcite.rex.RexNode; -import org.apache.calcite.rex.RexProgram; -import org.apache.calcite.sql.fun.SqlStdOperatorTable; -import org.apache.calcite.util.ImmutableBitSet; -import org.apache.calcite.util.Pair; -import org.apache.calcite.util.Util; - -import com.google.common.collect.ImmutableList; - -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.util.ArrayList; -import java.util.HashSet; -import java.util.List; -import java.util.Set; /** * RelMdFieldsTrimmable supplies a default implementation of core\src\main\java\org\apache\calcite\rel\rel2sql\SqlImplementor.java @@ -2152,20 +2152,16 @@ public DynamicParamVisitor() { } ... (22 more lines that didn't fit) Violations also present in: core\src\main\java\org\apache\calcite\sql2rel\RelFieldTrimmer.java core\src\main\java\org\apache\calcite\util\BuiltInMethod.java core\src\test\java\org\apache\calcite\test\JdbcTest.java You might want to adjust -PmaxCheckMessageLines=50 -PmaxFilesToList=10 -PminLinesPerFile=4 to see more violations Run './gradlew autostyleApply' to fix the violations.
Druid Tests: DruidAdapterIT.java#L4136
2.0sec org.apache.calcite.test.DruidAdapterIT > testAggOverStringToLong() java.sql.SQLException: Error while executing SQL "SELECT SUM(cast("product_id" AS INTEGER)) FROM "foodmart"": Error while compiling generated Java code: public org.apache.calcite.linq4j.Enumerable bind(final org.apache.calcite.DataContext root) { final org.apache.calcite.rel.RelNode v1stashed = root.get("v1stashed", org.apache.calcite.rel.RelNode.class); final org.apache.calcite.interpreter.Interpreter interpreter = new org.apache.calcite.interpreter.Interpreter( root, v1stashed); return org.apache.calcite.runtime.Enumerables.slice0(interpreter); } public Class getElementType() { return java.lang.Integer.class; } at org.apache.calcite.avatica.Helper.createException(Helper.java:56) at org.apache.calcite.avatica.Helper.createException(Helper.java:41) at org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:164) at org.apache.calcite.avatica.AvaticaStatement.executeQuery(AvaticaStatement.java:228) at org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:566) at org.apache.calcite.test.CalciteAssert$AssertQuery.lambda$queryContains$10(CalciteAssert.java:1750) at org.apache.calcite.test.CalciteAssert$AssertQuery.withConnection(CalciteAssert.java:1434) at org.apache.calcite.test.CalciteAssert$AssertQuery.queryContains(CalciteAssert.java:1749) at org.apache.calcite.test.DruidAdapterIT.testAggOverStringToLong(DruidAdapterIT.java:4136) Suppressed: org.apache.calcite.util.TestUtil$ExtraInformation: With materializationsEnabled=false, limit=-1 at app//org.apache.calcite.util.TestUtil.rethrow(TestUtil.java:389) at app//org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:598) ... 4 more Next exception 1: [CIRCULAR REFERENCE SQLException] Next exception 2: java.lang.RuntimeException: Error while compiling generated Java code: public org.apache.calcite.linq4j.Enumerable bind(final org.apache.calcite.DataContext root) { final org.apache.calcite.rel.RelNode v1stashed = root.get("v1stashed", org.apache.calcite.rel.RelNode.class); final org.apache.calcite.interpreter.Interpreter interpreter = new org.apache.calcite.interpreter.Interpreter( root, v1stashed); return org.apache.calcite.runtime.Enumerables.slice0(interpreter); } public Class getElementType() { return java.lang.Integer.class; } at org.apache.calcite.avatica.Helper.wrap(Helper.java:37) at org.apache.calcite.adapter.enumerable.EnumerableInterpretable.toBindable(EnumerableInterpretable.java:128) at org.apache.calcite.prepare.CalcitePrepareImpl$CalcitePreparingStmt.implement(CalcitePrepareImpl.java:1171) at org.apache.calcite.prepare.Prepare.prepareSql(Prepare.java:326) at org.apache.calcite.prepare.Prepare.prepareSql(Prepare.java:220) at org.apache.calcite.prepare.CalcitePrepareImpl.prepare2_(CalcitePrepareImpl.java:666) at org.apache.calcite.prepare.CalcitePrepareImpl.prepare_(CalcitePrepareImpl.java:519) at org.apache.calcite.prepare.CalcitePrepareImpl.prepareSql(CalcitePrepareImpl.java:487) at org.apache.calcite.jdbc.CalciteConnectionImpl.parseQuery(CalciteConnectionImpl.java:236) at org.apache.calcite.jdbc.CalciteMetaImpl.prepareAndExecute(CalciteMetaImpl.java:702) at org.apache.calcite.avatica.AvaticaConnection.prepareAndExecuteInternal(AvaticaConnection.java:677) at org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:157) ... 6 more Caused by: org.codehaus.commons.compiler.CompileException: Line 3, Column 57: Assignment conversion not possible from type "java.lang.Object" to type "org.apache.calcite.rel.RelNode" at app//org.codehaus.janino.UnitCompiler.compileError(UnitCompiler.java:13014) at app//org.codehaus.janino.UnitCompiler.assignmentConversion(UnitCompiler.java:11263) at app//org.codehaus.
Druid Tests: DruidAdapter2IT.java#L3475
2.0sec org.apache.calcite.test.DruidAdapter2IT > testAggOverStringToLong() java.sql.SQLException: Error while executing SQL "SELECT SUM(cast("product_id" AS INTEGER)) FROM "foodmart"": Error while compiling generated Java code: public org.apache.calcite.linq4j.Enumerable bind(final org.apache.calcite.DataContext root) { final org.apache.calcite.rel.RelNode v1stashed = root.get("v1stashed", org.apache.calcite.rel.RelNode.class); final org.apache.calcite.interpreter.Interpreter interpreter = new org.apache.calcite.interpreter.Interpreter( root, v1stashed); return org.apache.calcite.runtime.Enumerables.slice0(interpreter); } public Class getElementType() { return java.lang.Integer.class; } at org.apache.calcite.avatica.Helper.createException(Helper.java:56) at org.apache.calcite.avatica.Helper.createException(Helper.java:41) at org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:164) at org.apache.calcite.avatica.AvaticaStatement.executeQuery(AvaticaStatement.java:228) at org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:566) at org.apache.calcite.test.CalciteAssert$AssertQuery.lambda$queryContains$10(CalciteAssert.java:1750) at org.apache.calcite.test.CalciteAssert$AssertQuery.withConnection(CalciteAssert.java:1434) at org.apache.calcite.test.CalciteAssert$AssertQuery.queryContains(CalciteAssert.java:1749) at org.apache.calcite.test.DruidAdapter2IT.testAggOverStringToLong(DruidAdapter2IT.java:3475) Suppressed: org.apache.calcite.util.TestUtil$ExtraInformation: With materializationsEnabled=false, limit=-1 at app//org.apache.calcite.util.TestUtil.rethrow(TestUtil.java:389) at app//org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:598) ... 4 more Next exception 1: [CIRCULAR REFERENCE SQLException] Next exception 2: java.lang.RuntimeException: Error while compiling generated Java code: public org.apache.calcite.linq4j.Enumerable bind(final org.apache.calcite.DataContext root) { final org.apache.calcite.rel.RelNode v1stashed = root.get("v1stashed", org.apache.calcite.rel.RelNode.class); final org.apache.calcite.interpreter.Interpreter interpreter = new org.apache.calcite.interpreter.Interpreter( root, v1stashed); return org.apache.calcite.runtime.Enumerables.slice0(interpreter); } public Class getElementType() { return java.lang.Integer.class; } at org.apache.calcite.avatica.Helper.wrap(Helper.java:37) at org.apache.calcite.adapter.enumerable.EnumerableInterpretable.toBindable(EnumerableInterpretable.java:128) at org.apache.calcite.prepare.CalcitePrepareImpl$CalcitePreparingStmt.implement(CalcitePrepareImpl.java:1171) at org.apache.calcite.prepare.Prepare.prepareSql(Prepare.java:326) at org.apache.calcite.prepare.Prepare.prepareSql(Prepare.java:220) at org.apache.calcite.prepare.CalcitePrepareImpl.prepare2_(CalcitePrepareImpl.java:666) at org.apache.calcite.prepare.CalcitePrepareImpl.prepare_(CalcitePrepareImpl.java:519) at org.apache.calcite.prepare.CalcitePrepareImpl.prepareSql(CalcitePrepareImpl.java:487) at org.apache.calcite.jdbc.CalciteConnectionImpl.parseQuery(CalciteConnectionImpl.java:236) at org.apache.calcite.jdbc.CalciteMetaImpl.prepareAndExecute(CalciteMetaImpl.java:702) at org.apache.calcite.avatica.AvaticaConnection.prepareAndExecuteInternal(AvaticaConnection.java:677) at org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:157) ... 6 more Caused by: org.codehaus.commons.compiler.CompileException: Line 3, Column 57: Assignment conversion not possible from type "java.lang.Object" to type "org.apache.calcite.rel.RelNode" at app//org.codehaus.janino.UnitCompiler.compileError(UnitCompiler.java:13014) at app//org.codehaus.janino.UnitCompiler.assignmentConversion(UnitCompiler.java:11263) at app//org.codeha
Druid Tests: DruidAdapter2IT.java#L2710
0.6sec org.apache.calcite.test.DruidAdapter2IT > testIsNotNull() java.sql.SQLException: Error while executing SQL "select count(*) as c from "foodmart" where "product_id" is not null": Error while compiling generated Java code: public org.apache.calcite.linq4j.Enumerable bind(final org.apache.calcite.DataContext root) { final org.apache.calcite.rel.RelNode v1stashed = root.get("v1stashed", org.apache.calcite.rel.RelNode.class); final org.apache.calcite.interpreter.Interpreter interpreter = new org.apache.calcite.interpreter.Interpreter( root, v1stashed); return org.apache.calcite.runtime.Enumerables.slice0(interpreter); } public Class getElementType() { return long.class; } at org.apache.calcite.avatica.Helper.createException(Helper.java:56) at org.apache.calcite.avatica.Helper.createException(Helper.java:41) at org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:164) at org.apache.calcite.avatica.AvaticaStatement.executeQuery(AvaticaStatement.java:228) at org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:566) at org.apache.calcite.test.CalciteAssert$AssertQuery.lambda$queryContains$10(CalciteAssert.java:1750) at org.apache.calcite.test.CalciteAssert$AssertQuery.withConnection(CalciteAssert.java:1434) at org.apache.calcite.test.CalciteAssert$AssertQuery.queryContains(CalciteAssert.java:1749) at org.apache.calcite.test.DruidAdapter2IT.testIsNotNull(DruidAdapter2IT.java:2710) Suppressed: org.apache.calcite.util.TestUtil$ExtraInformation: With materializationsEnabled=false, limit=-1 at app//org.apache.calcite.util.TestUtil.rethrow(TestUtil.java:389) at app//org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:598) ... 4 more Next exception 1: [CIRCULAR REFERENCE SQLException] Next exception 2: java.lang.RuntimeException: Error while compiling generated Java code: public org.apache.calcite.linq4j.Enumerable bind(final org.apache.calcite.DataContext root) { final org.apache.calcite.rel.RelNode v1stashed = root.get("v1stashed", org.apache.calcite.rel.RelNode.class); final org.apache.calcite.interpreter.Interpreter interpreter = new org.apache.calcite.interpreter.Interpreter( root, v1stashed); return org.apache.calcite.runtime.Enumerables.slice0(interpreter); } public Class getElementType() { return long.class; } at org.apache.calcite.avatica.Helper.wrap(Helper.java:37) at org.apache.calcite.adapter.enumerable.EnumerableInterpretable.toBindable(EnumerableInterpretable.java:128) at org.apache.calcite.prepare.CalcitePrepareImpl$CalcitePreparingStmt.implement(CalcitePrepareImpl.java:1171) at org.apache.calcite.prepare.Prepare.prepareSql(Prepare.java:326) at org.apache.calcite.prepare.Prepare.prepareSql(Prepare.java:220) at org.apache.calcite.prepare.CalcitePrepareImpl.prepare2_(CalcitePrepareImpl.java:666) at org.apache.calcite.prepare.CalcitePrepareImpl.prepare_(CalcitePrepareImpl.java:519) at org.apache.calcite.prepare.CalcitePrepareImpl.prepareSql(CalcitePrepareImpl.java:487) at org.apache.calcite.jdbc.CalciteConnectionImpl.parseQuery(CalciteConnectionImpl.java:236) at org.apache.calcite.jdbc.CalciteMetaImpl.prepareAndExecute(CalciteMetaImpl.java:702) at org.apache.calcite.avatica.AvaticaConnection.prepareAndExecuteInternal(AvaticaConnection.java:677) at org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:157) ... 6 more Caused by: org.codehaus.commons.compiler.CompileException: Line 3, Column 57: Assignment conversion not possible from type "java.lang.Object" to type "org.apache.calcite.rel.RelNode" at app//org.codehaus.janino.UnitCompiler.compileError(UnitCompiler.java:13014) at app//org.codehaus.janino.UnitCompiler.assignmentConversion(UnitCompiler.java:11263) at app//org.codehaus.janino.UnitCompiler.access$3900(U
Druid Tests: DruidAdapter2IT.java#L3004
0.6sec org.apache.calcite.test.DruidAdapter2IT > testExpressionsFilterWithExtract() java.sql.SQLException: Error while executing SQL "SELECT COUNT(*) FROM "foodmart" where CAST((EXTRACT(MONTH FROM "timestamp") - 1 ) / 3 + 1 AS INTEGER) = 1": Error while compiling generated Java code: public org.apache.calcite.linq4j.Enumerable bind(final org.apache.calcite.DataContext root) { final org.apache.calcite.rel.RelNode v1stashed = root.get("v1stashed", org.apache.calcite.rel.RelNode.class); final org.apache.calcite.interpreter.Interpreter interpreter = new org.apache.calcite.interpreter.Interpreter( root, v1stashed); return org.apache.calcite.runtime.Enumerables.slice0(interpreter); } public Class getElementType() { return long.class; } at org.apache.calcite.avatica.Helper.createException(Helper.java:56) at org.apache.calcite.avatica.Helper.createException(Helper.java:41) at org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:164) at org.apache.calcite.avatica.AvaticaStatement.executeQuery(AvaticaStatement.java:228) at org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:566) at org.apache.calcite.test.CalciteAssert$AssertQuery.lambda$queryContains$10(CalciteAssert.java:1750) at org.apache.calcite.test.CalciteAssert$AssertQuery.withConnection(CalciteAssert.java:1434) at org.apache.calcite.test.CalciteAssert$AssertQuery.queryContains(CalciteAssert.java:1749) at org.apache.calcite.test.DruidAdapter2IT.testExpressionsFilterWithExtract(DruidAdapter2IT.java:3004) Suppressed: org.apache.calcite.util.TestUtil$ExtraInformation: With materializationsEnabled=false, limit=-1 at app//org.apache.calcite.util.TestUtil.rethrow(TestUtil.java:389) at app//org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:598) ... 4 more Next exception 1: [CIRCULAR REFERENCE SQLException] Next exception 2: java.lang.RuntimeException: Error while compiling generated Java code: public org.apache.calcite.linq4j.Enumerable bind(final org.apache.calcite.DataContext root) { final org.apache.calcite.rel.RelNode v1stashed = root.get("v1stashed", org.apache.calcite.rel.RelNode.class); final org.apache.calcite.interpreter.Interpreter interpreter = new org.apache.calcite.interpreter.Interpreter( root, v1stashed); return org.apache.calcite.runtime.Enumerables.slice0(interpreter); } public Class getElementType() { return long.class; } at org.apache.calcite.avatica.Helper.wrap(Helper.java:37) at org.apache.calcite.adapter.enumerable.EnumerableInterpretable.toBindable(EnumerableInterpretable.java:128) at org.apache.calcite.prepare.CalcitePrepareImpl$CalcitePreparingStmt.implement(CalcitePrepareImpl.java:1171) at org.apache.calcite.prepare.Prepare.prepareSql(Prepare.java:326) at org.apache.calcite.prepare.Prepare.prepareSql(Prepare.java:220) at org.apache.calcite.prepare.CalcitePrepareImpl.prepare2_(CalcitePrepareImpl.java:666) at org.apache.calcite.prepare.CalcitePrepareImpl.prepare_(CalcitePrepareImpl.java:519) at org.apache.calcite.prepare.CalcitePrepareImpl.prepareSql(CalcitePrepareImpl.java:487) at org.apache.calcite.jdbc.CalciteConnectionImpl.parseQuery(CalciteConnectionImpl.java:236) at org.apache.calcite.jdbc.CalciteMetaImpl.prepareAndExecute(CalciteMetaImpl.java:702) at org.apache.calcite.avatica.AvaticaConnection.prepareAndExecuteInternal(AvaticaConnection.java:677) at org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:157) ... 6 more Caused by: org.codehaus.commons.compiler.CompileException: Line 3, Column 57: Assignment conversion not possible from type "java.lang.Object" to type "org.apache.calcite.rel.RelNode" at app//org.codehaus.janino.UnitCompiler.compileError(UnitCompiler.java:13014) at app//org.codehaus.janino.UnitCompiler.assignmentConversion(UnitCompiler.j
Druid Tests: DruidAdapter2IT.java#L2346
0.2sec org.apache.calcite.test.DruidAdapter2IT > testOuterFilterFalseAfterFactorSimplification() java.sql.SQLException: Error while executing SQL "select sum("store_sales") filter (where "the_year" > 1997) from "foodmart" where "the_year" <= 1997": Error while compiling generated Java code: public org.apache.calcite.linq4j.Enumerable bind(final org.apache.calcite.DataContext root) { final org.apache.calcite.rel.RelNode v1stashed = root.get("v1stashed", org.apache.calcite.rel.RelNode.class); final org.apache.calcite.interpreter.Interpreter interpreter = new org.apache.calcite.interpreter.Interpreter( root, v1stashed); return org.apache.calcite.runtime.Enumerables.slice0(interpreter); } public Class getElementType() { return java.lang.Double.class; } at org.apache.calcite.avatica.Helper.createException(Helper.java:56) at org.apache.calcite.avatica.Helper.createException(Helper.java:41) at org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:164) at org.apache.calcite.avatica.AvaticaStatement.executeQuery(AvaticaStatement.java:228) at org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:566) at org.apache.calcite.test.CalciteAssert$AssertQuery.lambda$queryContains$10(CalciteAssert.java:1750) at org.apache.calcite.test.CalciteAssert$AssertQuery.withConnection(CalciteAssert.java:1434) at org.apache.calcite.test.CalciteAssert$AssertQuery.queryContains(CalciteAssert.java:1749) at org.apache.calcite.test.DruidAdapter2IT.testOuterFilterFalseAfterFactorSimplification(DruidAdapter2IT.java:2346) Suppressed: org.apache.calcite.util.TestUtil$ExtraInformation: With materializationsEnabled=false, limit=-1 at app//org.apache.calcite.util.TestUtil.rethrow(TestUtil.java:389) at app//org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:598) ... 4 more Next exception 1: [CIRCULAR REFERENCE SQLException] Next exception 2: java.lang.RuntimeException: Error while compiling generated Java code: public org.apache.calcite.linq4j.Enumerable bind(final org.apache.calcite.DataContext root) { final org.apache.calcite.rel.RelNode v1stashed = root.get("v1stashed", org.apache.calcite.rel.RelNode.class); final org.apache.calcite.interpreter.Interpreter interpreter = new org.apache.calcite.interpreter.Interpreter( root, v1stashed); return org.apache.calcite.runtime.Enumerables.slice0(interpreter); } public Class getElementType() { return java.lang.Double.class; } at org.apache.calcite.avatica.Helper.wrap(Helper.java:37) at org.apache.calcite.adapter.enumerable.EnumerableInterpretable.toBindable(EnumerableInterpretable.java:128) at org.apache.calcite.prepare.CalcitePrepareImpl$CalcitePreparingStmt.implement(CalcitePrepareImpl.java:1171) at org.apache.calcite.prepare.Prepare.prepareSql(Prepare.java:326) at org.apache.calcite.prepare.Prepare.prepareSql(Prepare.java:220) at org.apache.calcite.prepare.CalcitePrepareImpl.prepare2_(CalcitePrepareImpl.java:666) at org.apache.calcite.prepare.CalcitePrepareImpl.prepare_(CalcitePrepareImpl.java:519) at org.apache.calcite.prepare.CalcitePrepareImpl.prepareSql(CalcitePrepareImpl.java:487) at org.apache.calcite.jdbc.CalciteConnectionImpl.parseQuery(CalciteConnectionImpl.java:236) at org.apache.calcite.jdbc.CalciteMetaImpl.prepareAndExecute(CalciteMetaImpl.java:702) at org.apache.calcite.avatica.AvaticaConnection.prepareAndExecuteInternal(AvaticaConnection.java:677) at org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:157) ... 6 more Caused by: org.codehaus.commons.compiler.CompileException: Line 3, Column 57: Assignment conversion not possible from type "java.lang.Object" to type "org.apache.calcite.rel.RelNode" at app//org.codehaus.janino.UnitCompiler.compileError(UnitCompiler.java:13014) at app//org.codehaus.janino.UnitC
Druid Tests: DruidAdapter2IT.java#L743
0.1sec org.apache.calcite.test.DruidAdapter2IT > testGroupByOneColumnReversed() java.sql.SQLException: Error while executing SQL "select count(*) as c, "state_province" from "foodmart" group by "state_province" order by "state_province"": Error while compiling generated Java code: public org.apache.calcite.linq4j.Enumerable bind(final org.apache.calcite.DataContext root) { final org.apache.calcite.rel.RelNode v1stashed = root.get("v1stashed", org.apache.calcite.rel.RelNode.class); final org.apache.calcite.interpreter.Interpreter interpreter = new org.apache.calcite.interpreter.Interpreter( root, v1stashed); return interpreter; } public Class getElementType() { return java.lang.Object[].class; } at org.apache.calcite.avatica.Helper.createException(Helper.java:56) at org.apache.calcite.avatica.Helper.createException(Helper.java:41) at org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:164) at org.apache.calcite.avatica.AvaticaStatement.executeQuery(AvaticaStatement.java:228) at org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:566) at org.apache.calcite.test.CalciteAssert$AssertQuery.lambda$returns$1(CalciteAssert.java:1495) at org.apache.calcite.test.CalciteAssert$AssertQuery.withConnection(CalciteAssert.java:1434) at org.apache.calcite.test.CalciteAssert$AssertQuery.returns(CalciteAssert.java:1493) at org.apache.calcite.test.CalciteAssert$AssertQuery.returns(CalciteAssert.java:1483) at org.apache.calcite.test.CalciteAssert$AssertQuery.returnsOrdered(CalciteAssert.java:1509) at org.apache.calcite.test.DruidAdapter2IT.testGroupByOneColumnReversed(DruidAdapter2IT.java:743) Suppressed: org.apache.calcite.util.TestUtil$ExtraInformation: With materializationsEnabled=false, limit=2 at app//org.apache.calcite.util.TestUtil.rethrow(TestUtil.java:389) at app//org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:598) ... 6 more Next exception 1: [CIRCULAR REFERENCE SQLException] Next exception 2: java.lang.RuntimeException: Error while compiling generated Java code: public org.apache.calcite.linq4j.Enumerable bind(final org.apache.calcite.DataContext root) { final org.apache.calcite.rel.RelNode v1stashed = root.get("v1stashed", org.apache.calcite.rel.RelNode.class); final org.apache.calcite.interpreter.Interpreter interpreter = new org.apache.calcite.interpreter.Interpreter( root, v1stashed); return interpreter; } public Class getElementType() { return java.lang.Object[].class; } at org.apache.calcite.avatica.Helper.wrap(Helper.java:37) at org.apache.calcite.adapter.enumerable.EnumerableInterpretable.toBindable(EnumerableInterpretable.java:128) at org.apache.calcite.prepare.CalcitePrepareImpl$CalcitePreparingStmt.implement(CalcitePrepareImpl.java:1171) at org.apache.calcite.prepare.Prepare.prepareSql(Prepare.java:326) at org.apache.calcite.prepare.Prepare.prepareSql(Prepare.java:220) at org.apache.calcite.prepare.CalcitePrepareImpl.prepare2_(CalcitePrepareImpl.java:666) at org.apache.calcite.prepare.CalcitePrepareImpl.prepare_(CalcitePrepareImpl.java:519) at org.apache.calcite.prepare.CalcitePrepareImpl.prepareSql(CalcitePrepareImpl.java:487) at org.apache.calcite.jdbc.CalciteConnectionImpl.parseQuery(CalciteConnectionImpl.java:236) at org.apache.calcite.jdbc.CalciteMetaImpl.prepareAndExecute(CalciteMetaImpl.java:702) at org.apache.calcite.avatica.AvaticaConnection.prepareAndExecuteInternal(AvaticaConnection.java:677) at org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:157) ... 8 more Caused by: org.codehaus.commons.compiler.CompileException: Line 3, Column 57: Assignment conversion not possible from type "java.lang.Object" to type "org.apache.calcite.rel.RelNode" at app//org.codehaus.janino.UnitCompiler.compileError(UnitCompiler.ja
Druid Tests: DruidAdapter2IT.java#L1115
0.3sec org.apache.calcite.test.DruidAdapter2IT > testFilterTimestamp() java.sql.SQLException: Error while executing SQL "select count(*) as c from "foodmart" where extract(year from "timestamp") = 1997 and extract(month from "timestamp") in (4, 6) ": Error while compiling generated Java code: public org.apache.calcite.linq4j.Enumerable bind(final org.apache.calcite.DataContext root) { final org.apache.calcite.rel.RelNode v1stashed = root.get("v1stashed", org.apache.calcite.rel.RelNode.class); final org.apache.calcite.interpreter.Interpreter interpreter = new org.apache.calcite.interpreter.Interpreter( root, v1stashed); return org.apache.calcite.runtime.Enumerables.slice0(interpreter); } public Class getElementType() { return long.class; } at org.apache.calcite.avatica.Helper.createException(Helper.java:56) at org.apache.calcite.avatica.Helper.createException(Helper.java:41) at org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:164) at org.apache.calcite.avatica.AvaticaStatement.executeQuery(AvaticaStatement.java:228) at org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:566) at org.apache.calcite.test.CalciteAssert$AssertQuery.lambda$returns$1(CalciteAssert.java:1495) at org.apache.calcite.test.CalciteAssert$AssertQuery.withConnection(CalciteAssert.java:1434) at org.apache.calcite.test.CalciteAssert$AssertQuery.returns(CalciteAssert.java:1493) at org.apache.calcite.test.CalciteAssert$AssertQuery.returns(CalciteAssert.java:1483) at org.apache.calcite.test.CalciteAssert$AssertQuery.returnsUnordered(CalciteAssert.java:1505) at org.apache.calcite.test.DruidAdapter2IT.testFilterTimestamp(DruidAdapter2IT.java:1115) Suppressed: org.apache.calcite.util.TestUtil$ExtraInformation: With materializationsEnabled=false, limit=-1 at app//org.apache.calcite.util.TestUtil.rethrow(TestUtil.java:389) at app//org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:598) ... 6 more Next exception 1: [CIRCULAR REFERENCE SQLException] Next exception 2: java.lang.RuntimeException: Error while compiling generated Java code: public org.apache.calcite.linq4j.Enumerable bind(final org.apache.calcite.DataContext root) { final org.apache.calcite.rel.RelNode v1stashed = root.get("v1stashed", org.apache.calcite.rel.RelNode.class); final org.apache.calcite.interpreter.Interpreter interpreter = new org.apache.calcite.interpreter.Interpreter( root, v1stashed); return org.apache.calcite.runtime.Enumerables.slice0(interpreter); } public Class getElementType() { return long.class; } at org.apache.calcite.avatica.Helper.wrap(Helper.java:37) at org.apache.calcite.adapter.enumerable.EnumerableInterpretable.toBindable(EnumerableInterpretable.java:128) at org.apache.calcite.prepare.CalcitePrepareImpl$CalcitePreparingStmt.implement(CalcitePrepareImpl.java:1171) at org.apache.calcite.prepare.Prepare.prepareSql(Prepare.java:326) at org.apache.calcite.prepare.Prepare.prepareSql(Prepare.java:220) at org.apache.calcite.prepare.CalcitePrepareImpl.prepare2_(CalcitePrepareImpl.java:666) at org.apache.calcite.prepare.CalcitePrepareImpl.prepare_(CalcitePrepareImpl.java:519) at org.apache.calcite.prepare.CalcitePrepareImpl.prepareSql(CalcitePrepareImpl.java:487) at org.apache.calcite.jdbc.CalciteConnectionImpl.parseQuery(CalciteConnectionImpl.java:236) at org.apache.calcite.jdbc.CalciteMetaImpl.prepareAndExecute(CalciteMetaImpl.java:702) at org.apache.calcite.avatica.AvaticaConnection.prepareAndExecuteInternal(AvaticaConnection.java:677) at org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:157) ... 8 more Caused by: org.codehaus.commons.compiler.CompileException: Line 3, Column 57: Assignment conversion not possible from type "java.lang.Object" to type "org.apache.calcite.rel.RelNode"
Druid Tests: DruidAdapterIT.java#L2133
0.5sec org.apache.calcite.test.DruidAdapterIT > testRecursiveArithmeticOperation() java.sql.SQLException: Error while executing SQL "select "store_state", -1 * (a + b) as c from (select (sum("store_sales")-sum("store_cost")) / (count(*) * 3) AS a,sum("unit_sales") AS b, "store_state" from "foodmart" group by "store_state") order by c desc": Error while compiling generated Java code: public org.apache.calcite.linq4j.Enumerable bind(final org.apache.calcite.DataContext root) { final org.apache.calcite.rel.RelNode v1stashed = root.get("v1stashed", org.apache.calcite.rel.RelNode.class); final org.apache.calcite.interpreter.Interpreter interpreter = new org.apache.calcite.interpreter.Interpreter( root, v1stashed); return interpreter; } public Class getElementType() { return java.lang.Object[].class; } at org.apache.calcite.avatica.Helper.createException(Helper.java:56) at org.apache.calcite.avatica.Helper.createException(Helper.java:41) at org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:164) at org.apache.calcite.avatica.AvaticaStatement.executeQuery(AvaticaStatement.java:228) at org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:566) at org.apache.calcite.test.CalciteAssert$AssertQuery.lambda$returns$1(CalciteAssert.java:1495) at org.apache.calcite.test.CalciteAssert$AssertQuery.withConnection(CalciteAssert.java:1434) at org.apache.calcite.test.CalciteAssert$AssertQuery.returns(CalciteAssert.java:1493) at org.apache.calcite.test.CalciteAssert$AssertQuery.returns(CalciteAssert.java:1483) at org.apache.calcite.test.CalciteAssert$AssertQuery.returnsOrdered(CalciteAssert.java:1509) at org.apache.calcite.test.DruidAdapterIT.testRecursiveArithmeticOperation(DruidAdapterIT.java:2133) Suppressed: org.apache.calcite.util.TestUtil$ExtraInformation: With materializationsEnabled=false, limit=-1 at app//org.apache.calcite.util.TestUtil.rethrow(TestUtil.java:389) at app//org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:598) ... 6 more Next exception 1: [CIRCULAR REFERENCE SQLException] Next exception 2: java.lang.RuntimeException: Error while compiling generated Java code: public org.apache.calcite.linq4j.Enumerable bind(final org.apache.calcite.DataContext root) { final org.apache.calcite.rel.RelNode v1stashed = root.get("v1stashed", org.apache.calcite.rel.RelNode.class); final org.apache.calcite.interpreter.Interpreter interpreter = new org.apache.calcite.interpreter.Interpreter( root, v1stashed); return interpreter; } public Class getElementType() { return java.lang.Object[].class; } at org.apache.calcite.avatica.Helper.wrap(Helper.java:37) at org.apache.calcite.adapter.enumerable.EnumerableInterpretable.toBindable(EnumerableInterpretable.java:128) at org.apache.calcite.prepare.CalcitePrepareImpl$CalcitePreparingStmt.implement(CalcitePrepareImpl.java:1171) at org.apache.calcite.prepare.Prepare.prepareSql(Prepare.java:326) at org.apache.calcite.prepare.Prepare.prepareSql(Prepare.java:220) at org.apache.calcite.prepare.CalcitePrepareImpl.prepare2_(CalcitePrepareImpl.java:666) at org.apache.calcite.prepare.CalcitePrepareImpl.prepare_(CalcitePrepareImpl.java:519) at org.apache.calcite.prepare.CalcitePrepareImpl.prepareSql(CalcitePrepareImpl.java:487) at org.apache.calcite.jdbc.CalciteConnectionImpl.parseQuery(CalciteConnectionImpl.java:236) at org.apache.calcite.jdbc.CalciteMetaImpl.prepareAndExecute(CalciteMetaImpl.java:702) at org.apache.calcite.avatica.AvaticaConnection.prepareAndExecuteInternal(AvaticaConnection.java:677) at org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:157) ... 8 more Caused by: org.codehaus.commons.compiler.CompileException: Line 3, Column 57: Assignment conversion not possible from type "java.lang.Object" to type "org
Druid Tests: DruidAdapter2IT.java#L1829
0.5sec org.apache.calcite.test.DruidAdapter2IT > testRecursiveArithmeticOperation() java.sql.SQLException: Error while executing SQL "select "store_state", -1 * (a + b) as c from (select (sum("store_sales")-sum("store_cost")) / (count(*) * 3) AS a,sum("unit_sales") AS b, "store_state" from "foodmart" group by "store_state") order by c desc": Error while compiling generated Java code: public org.apache.calcite.linq4j.Enumerable bind(final org.apache.calcite.DataContext root) { final org.apache.calcite.rel.RelNode v1stashed = root.get("v1stashed", org.apache.calcite.rel.RelNode.class); final org.apache.calcite.interpreter.Interpreter interpreter = new org.apache.calcite.interpreter.Interpreter( root, v1stashed); return interpreter; } public Class getElementType() { return java.lang.Object[].class; } at org.apache.calcite.avatica.Helper.createException(Helper.java:56) at org.apache.calcite.avatica.Helper.createException(Helper.java:41) at org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:164) at org.apache.calcite.avatica.AvaticaStatement.executeQuery(AvaticaStatement.java:228) at org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:566) at org.apache.calcite.test.CalciteAssert$AssertQuery.lambda$returns$1(CalciteAssert.java:1495) at org.apache.calcite.test.CalciteAssert$AssertQuery.withConnection(CalciteAssert.java:1434) at org.apache.calcite.test.CalciteAssert$AssertQuery.returns(CalciteAssert.java:1493) at org.apache.calcite.test.CalciteAssert$AssertQuery.returns(CalciteAssert.java:1483) at org.apache.calcite.test.CalciteAssert$AssertQuery.returnsOrdered(CalciteAssert.java:1509) at org.apache.calcite.test.DruidAdapter2IT.testRecursiveArithmeticOperation(DruidAdapter2IT.java:1829) Suppressed: org.apache.calcite.util.TestUtil$ExtraInformation: With materializationsEnabled=false, limit=-1 at app//org.apache.calcite.util.TestUtil.rethrow(TestUtil.java:389) at app//org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:598) ... 6 more Next exception 1: [CIRCULAR REFERENCE SQLException] Next exception 2: java.lang.RuntimeException: Error while compiling generated Java code: public org.apache.calcite.linq4j.Enumerable bind(final org.apache.calcite.DataContext root) { final org.apache.calcite.rel.RelNode v1stashed = root.get("v1stashed", org.apache.calcite.rel.RelNode.class); final org.apache.calcite.interpreter.Interpreter interpreter = new org.apache.calcite.interpreter.Interpreter( root, v1stashed); return interpreter; } public Class getElementType() { return java.lang.Object[].class; } at org.apache.calcite.avatica.Helper.wrap(Helper.java:37) at org.apache.calcite.adapter.enumerable.EnumerableInterpretable.toBindable(EnumerableInterpretable.java:128) at org.apache.calcite.prepare.CalcitePrepareImpl$CalcitePreparingStmt.implement(CalcitePrepareImpl.java:1171) at org.apache.calcite.prepare.Prepare.prepareSql(Prepare.java:326) at org.apache.calcite.prepare.Prepare.prepareSql(Prepare.java:220) at org.apache.calcite.prepare.CalcitePrepareImpl.prepare2_(CalcitePrepareImpl.java:666) at org.apache.calcite.prepare.CalcitePrepareImpl.prepare_(CalcitePrepareImpl.java:519) at org.apache.calcite.prepare.CalcitePrepareImpl.prepareSql(CalcitePrepareImpl.java:487) at org.apache.calcite.jdbc.CalciteConnectionImpl.parseQuery(CalciteConnectionImpl.java:236) at org.apache.calcite.jdbc.CalciteMetaImpl.prepareAndExecute(CalciteMetaImpl.java:702) at org.apache.calcite.avatica.AvaticaConnection.prepareAndExecuteInternal(AvaticaConnection.java:677) at org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:157) ... 8 more Caused by: org.codehaus.commons.compiler.CompileException: Line 3, Column 57: Assignment conversion not possible from type "java.lang.Object" to type "
Druid Tests: DruidAdapter2IT.java#L3107
0.2sec org.apache.calcite.test.DruidAdapter2IT > testCastPlusMathOps() java.sql.SQLException: Error while executing SQL "SELECT COUNT(*) FROM "foodmart"WHERE (CAST("product_id" AS INTEGER) + 1 * "store_sales")/("store_cost" - 5) <= floor("store_sales") * 25 + 2": Error while compiling generated Java code: public org.apache.calcite.linq4j.Enumerable bind(final org.apache.calcite.DataContext root) { final org.apache.calcite.rel.RelNode v1stashed = root.get("v1stashed", org.apache.calcite.rel.RelNode.class); final org.apache.calcite.interpreter.Interpreter interpreter = new org.apache.calcite.interpreter.Interpreter( root, v1stashed); return org.apache.calcite.runtime.Enumerables.slice0(interpreter); } public Class getElementType() { return long.class; } at org.apache.calcite.avatica.Helper.createException(Helper.java:56) at org.apache.calcite.avatica.Helper.createException(Helper.java:41) at org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:164) at org.apache.calcite.avatica.AvaticaStatement.executeQuery(AvaticaStatement.java:228) at org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:566) at org.apache.calcite.test.CalciteAssert$AssertQuery.lambda$queryContains$10(CalciteAssert.java:1750) at org.apache.calcite.test.CalciteAssert$AssertQuery.withConnection(CalciteAssert.java:1434) at org.apache.calcite.test.CalciteAssert$AssertQuery.queryContains(CalciteAssert.java:1749) at org.apache.calcite.test.DruidAdapter2IT.testCastPlusMathOps(DruidAdapter2IT.java:3107) Suppressed: org.apache.calcite.util.TestUtil$ExtraInformation: With materializationsEnabled=false, limit=-1 at app//org.apache.calcite.util.TestUtil.rethrow(TestUtil.java:389) at app//org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:598) ... 4 more Next exception 1: [CIRCULAR REFERENCE SQLException] Next exception 2: java.lang.RuntimeException: Error while compiling generated Java code: public org.apache.calcite.linq4j.Enumerable bind(final org.apache.calcite.DataContext root) { final org.apache.calcite.rel.RelNode v1stashed = root.get("v1stashed", org.apache.calcite.rel.RelNode.class); final org.apache.calcite.interpreter.Interpreter interpreter = new org.apache.calcite.interpreter.Interpreter( root, v1stashed); return org.apache.calcite.runtime.Enumerables.slice0(interpreter); } public Class getElementType() { return long.class; } at org.apache.calcite.avatica.Helper.wrap(Helper.java:37) at org.apache.calcite.adapter.enumerable.EnumerableInterpretable.toBindable(EnumerableInterpretable.java:128) at org.apache.calcite.prepare.CalcitePrepareImpl$CalcitePreparingStmt.implement(CalcitePrepareImpl.java:1171) at org.apache.calcite.prepare.Prepare.prepareSql(Prepare.java:326) at org.apache.calcite.prepare.Prepare.prepareSql(Prepare.java:220) at org.apache.calcite.prepare.CalcitePrepareImpl.prepare2_(CalcitePrepareImpl.java:666) at org.apache.calcite.prepare.CalcitePrepareImpl.prepare_(CalcitePrepareImpl.java:519) at org.apache.calcite.prepare.CalcitePrepareImpl.prepareSql(CalcitePrepareImpl.java:487) at org.apache.calcite.jdbc.CalciteConnectionImpl.parseQuery(CalciteConnectionImpl.java:236) at org.apache.calcite.jdbc.CalciteMetaImpl.prepareAndExecute(CalciteMetaImpl.java:702) at org.apache.calcite.avatica.AvaticaConnection.prepareAndExecuteInternal(AvaticaConnection.java:677) at org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:157) ... 6 more Caused by: org.codehaus.commons.compiler.CompileException: Line 3, Column 57: Assignment conversion not possible from type "java.lang.Object" to type "org.apache.calcite.rel.RelNode" at app//org.codehaus.janino.UnitCompiler.compileError(UnitCompiler.java:13014) at app//org.codehaus.janino.UnitCompiler.assignmentConversion(UnitCo
macOS (JDK 19): task ':core:autostyleJavaCheck'#L1
Execution failed for task ':core:autostyleJavaCheck': See 'What went wrong' below
macOS (JDK 19)
Execution failed for task ':core:autostyleJavaCheck'. > The following files have format violations: core/src/main/java/org/apache/calcite/rel/metadata/RelMdFieldsTrimmable.java @@ -16,47 +16,7 @@ */ package org.apache.calcite.rel.metadata; -import org.apache.calcite.plan.RelOptPredicateList; -import org.apache.calcite.plan.volcano.RelSubset; import org.apache.calcite.rel.RelNode; -import org.apache.calcite.rel.SingleRel; -import org.apache.calcite.rel.convert.Converter; -import org.apache.calcite.rel.core.Aggregate; -import org.apache.calcite.rel.core.Calc; -import org.apache.calcite.rel.core.Correlate; -import org.apache.calcite.rel.core.Exchange; -import org.apache.calcite.rel.core.Filter; -import org.apache.calcite.rel.core.Intersect; -import org.apache.calcite.rel.core.Join; -import org.apache.calcite.rel.core.JoinInfo; -import org.apache.calcite.rel.core.JoinRelType; -import org.apache.calcite.rel.core.Minus; -import org.apache.calcite.rel.core.Project; -import org.apache.calcite.rel.core.SetOp; -import org.apache.calcite.rel.core.Sort; -import org.apache.calcite.rel.core.TableModify; -import org.apache.calcite.rel.core.TableScan; -import org.apache.calcite.rel.core.Values; -import org.apache.calcite.rel.type.RelDataType; -import org.apache.calcite.rel.type.RelDataTypeFactory; -import org.apache.calcite.rex.RexCall; -import org.apache.calcite.rex.RexInputRef; -import org.apache.calcite.rex.RexLiteral; -import org.apache.calcite.rex.RexNode; -import org.apache.calcite.rex.RexProgram; -import org.apache.calcite.sql.fun.SqlStdOperatorTable; -import org.apache.calcite.util.ImmutableBitSet; -import org.apache.calcite.util.Pair; -import org.apache.calcite.util.Util; - -import com.google.common.collect.ImmutableList; - -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.util.ArrayList; -import java.util.HashSet; -import java.util.List; -import java.util.Set; /** * RelMdFieldsTrimmable supplies a default implementation of core/src/main/java/org/apache/calcite/rel/rel2sql/SqlImplementor.java @@ -2152,20 +2152,16 @@ public DynamicParamVisitor() { } ... (22 more lines that didn't fit) Violations also present in: core/src/main/java/org/apache/calcite/sql2rel/RelFieldTrimmer.java core/src/main/java/org/apache/calcite/util/BuiltInMethod.java core/src/test/java/org/apache/calcite/test/JdbcTest.java You might want to adjust -PmaxCheckMessageLines=50 -PmaxFilesToList=10 -PminLinesPerFile=4 to see more violations Run './gradlew autostyleApply' to fix the violations.
CheckerFramework (JDK 11): task ':core:compileJava'#L1
Execution failed for task ':core:compileJava': org.gradle.api.internal.tasks.compile.CompilationFailedException: Compilation failed; see the compiler error output for details. at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:58) at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:41) at org.gradle.api.internal.tasks.compile.daemon.AbstractDaemonCompiler$CompilerWorkAction.execute(AbstractDaemonCompiler.java:135) at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:63) at org.gradle.workers.internal.AbstractClassLoaderWorker$1.create(AbstractClassLoaderWorker.java:49) at org.gradle.workers.internal.AbstractClassLoaderWorker$1.create(AbstractClassLoaderWorker.java:43) at org.gradle.internal.classloader.ClassLoaderUtils.executeInClassloader(ClassLoaderUtils.java:100) at org.gradle.workers.internal.AbstractClassLoaderWorker.executeInClassLoader(AbstractClassLoaderWorker.java:43) at org.gradle.workers.internal.FlatClassLoaderWorker.run(FlatClassLoaderWorker.java:32) at org.gradle.workers.internal.FlatClassLoaderWorker.run(FlatClassLoaderWorker.java:22) at org.gradle.workers.internal.WorkerDaemonServer.run(WorkerDaemonServer.java:87) at org.gradle.workers.internal.WorkerDaemonServer.run(WorkerDaemonServer.java:56) at org.gradle.process.internal.worker.request.WorkerAction$1.call(WorkerAction.java:138) at org.gradle.process.internal.worker.child.WorkerLogEventListener.withWorkerLoggingProtocol(WorkerLogEventListener.java:41) at org.gradle.process.internal.worker.request.WorkerAction.run(WorkerAction.java:135) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:182) at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:164) at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:414) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:49) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829)
CheckerFramework (JDK 11)
Execution failed for task ':core:compileJava'. > Compilation failed; see the compiler error output for details.
CheckerFramework (JDK 11): core/src/main/java/org/apache/calcite/sql2rel/RelFieldTrimmer.java#L199
[Task :core:compileJava] [unboxing.of.nullable] unboxing a possibly-null reference mq.areFieldsTrimmable(input, rel) if ( !mq.areFieldsTrimmable(input, rel)) { ^
CheckerFramework (JDK 11): core/src/main/java/org/apache/calcite/adapter/enumerable/EnumerableBatchNestedLoopJoin.java#L108
[Task :core:compileJava] [unboxing.of.nullable] unboxing a possibly-null reference originRowCount originRowCount); ^
CheckerFramework (JDK 11): core/src/main/java/org/apache/calcite/adapter/enumerable/EnumerableBatchNestedLoopJoin.java#L136
[Task :core:compileJava] [unboxing.of.nullable] unboxing a possibly-null reference originRowCount variablesSet, requiredColumns, joinType, originRowCount); ^
CheckerFramework (JDK 11): core/src/main/java/org/apache/calcite/adapter/enumerable/EnumerableBatchNestedLoopJoin.java#L170
[Task :core:compileJava] [return.type.incompatible] incompatible types in return. return originRowCount; ^ type of expression: @initialized @nullable Double
CheckerFramework (JDK 11): core/src/main/java/org/apache/calcite/adapter/jdbc/JdbcSchema.java#L299
[Task :core:compileJava] [return.type.incompatible] incompatible types in return. return null; ^ type of expression: null (NullType)
CheckerFramework (JDK 11), oldest Guava: task ':core:compileJava'#L1
Execution failed for task ':core:compileJava': org.gradle.api.internal.tasks.compile.CompilationFailedException: Compilation failed; see the compiler error output for details. at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:58) at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:41) at org.gradle.api.internal.tasks.compile.daemon.AbstractDaemonCompiler$CompilerWorkAction.execute(AbstractDaemonCompiler.java:135) at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:63) at org.gradle.workers.internal.AbstractClassLoaderWorker$1.create(AbstractClassLoaderWorker.java:49) at org.gradle.workers.internal.AbstractClassLoaderWorker$1.create(AbstractClassLoaderWorker.java:43) at org.gradle.internal.classloader.ClassLoaderUtils.executeInClassloader(ClassLoaderUtils.java:100) at org.gradle.workers.internal.AbstractClassLoaderWorker.executeInClassLoader(AbstractClassLoaderWorker.java:43) at org.gradle.workers.internal.FlatClassLoaderWorker.run(FlatClassLoaderWorker.java:32) at org.gradle.workers.internal.FlatClassLoaderWorker.run(FlatClassLoaderWorker.java:22) at org.gradle.workers.internal.WorkerDaemonServer.run(WorkerDaemonServer.java:87) at org.gradle.workers.internal.WorkerDaemonServer.run(WorkerDaemonServer.java:56) at org.gradle.process.internal.worker.request.WorkerAction$1.call(WorkerAction.java:138) at org.gradle.process.internal.worker.child.WorkerLogEventListener.withWorkerLoggingProtocol(WorkerLogEventListener.java:41) at org.gradle.process.internal.worker.request.WorkerAction.run(WorkerAction.java:135) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:182) at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:164) at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:414) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:49) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829)
CheckerFramework (JDK 11), oldest Guava
Execution failed for task ':core:compileJava'. > Compilation failed; see the compiler error output for details.
CheckerFramework (JDK 11), oldest Guava: core/src/main/java/org/apache/calcite/sql2rel/RelFieldTrimmer.java#L199
[Task :core:compileJava] [unboxing.of.nullable] unboxing a possibly-null reference mq.areFieldsTrimmable(input, rel) if ( !mq.areFieldsTrimmable(input, rel)) { ^
CheckerFramework (JDK 11), oldest Guava: core/src/main/java/org/apache/calcite/adapter/enumerable/EnumerableBatchNestedLoopJoin.java#L108
[Task :core:compileJava] [unboxing.of.nullable] unboxing a possibly-null reference originRowCount originRowCount); ^
CheckerFramework (JDK 11), oldest Guava: core/src/main/java/org/apache/calcite/adapter/enumerable/EnumerableBatchNestedLoopJoin.java#L136
[Task :core:compileJava] [unboxing.of.nullable] unboxing a possibly-null reference originRowCount variablesSet, requiredColumns, joinType, originRowCount); ^
CheckerFramework (JDK 11), oldest Guava: core/src/main/java/org/apache/calcite/adapter/enumerable/EnumerableBatchNestedLoopJoin.java#L170
[Task :core:compileJava] [return.type.incompatible] incompatible types in return. return originRowCount; ^ type of expression: @initialized @nullable Double
CheckerFramework (JDK 11), oldest Guava: core/src/main/java/org/apache/calcite/adapter/jdbc/JdbcSchema.java#L299
[Task :core:compileJava] [return.type.incompatible] incompatible types in return. return null; ^ type of expression: null (NullType)
Error Prone (JDK 11), latest Guava
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-java@v2, burrunan/gradle-cache-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Error Prone (JDK 11), latest Guava
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-java@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Linux (JDK 19)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-java@v2, burrunan/gradle-cache-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Linux (JDK 19)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-java@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Linux (JDK 11), Pacific/Chatham Timezone
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-java@v2, burrunan/gradle-cache-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Linux (JDK 11), Pacific/Chatham Timezone
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-java@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Linux (JDK 17)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-java@v2, burrunan/gradle-cache-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Linux (JDK 17)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-java@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Linux (JDK 8), oldest Guava, America/New_York Timezone
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-java@v2, burrunan/gradle-cache-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Linux (JDK 8), oldest Guava, America/New_York Timezone
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-java@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Linux (JDK 11), Avatica main
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-java@v2, burrunan/gradle-cache-action@v1, actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Linux (JDK 11), Avatica main
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-java@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Linux (JDK 8), latest Guava, America/New_York Timezone
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-java@v2, burrunan/gradle-cache-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Linux (JDK 8), latest Guava, America/New_York Timezone
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-java@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Windows (JDK 17)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-java@v2, burrunan/gradle-cache-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Windows (JDK 17)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-java@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Windows (JDK 8)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-java@v2, burrunan/gradle-cache-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Windows (JDK 8)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-java@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Druid Tests
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-java@v2, actions/checkout@v3, burrunan/gradle-cache-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Druid Tests
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-java@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
macOS (JDK 19)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-java@v2, burrunan/gradle-cache-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
macOS (JDK 19)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-java@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
CheckerFramework (JDK 11)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-java@v2, burrunan/gradle-cache-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
CheckerFramework (JDK 11)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-java@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
CheckerFramework (JDK 11), oldest Guava
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-java@v2, burrunan/gradle-cache-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
CheckerFramework (JDK 11), oldest Guava
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-java@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/