See 
<https://ci-builds.apache.org/job/Calcite/job/Calcite-snapshots/267/display/redirect?page=changes>

Changes:

[Benchao Li] [CALCITE-4982] Do not push 'cast to not null' through Join in 
ProjectJoinTransposeRule


------------------------------------------
[...truncated 749.00 KB...]
    <     <Resource name="sql">
    <       <![CDATA[select * from emp
    < where exists (
    <   with dept2 as (select * from dept where dept.deptno >= emp.deptno)
    <   select 1 from dept2 where deptno <= emp.deptno)]]>
    <     </Resource>
    <     <Resource name="plan">
    <       <![CDATA[
    < LogicalProject(EMPNO=[$0], ENAME=[$1], JOB=[$2], MGR=[$3], HIREDATE=[$4], 
SAL=[$5], COMM=[$6], DEPTNO=[$7], SLACKER=[$8])
    <   LogicalFilter(condition=[EXISTS({
    < LogicalFilter(condition=[<=($0, $cor1.DEPTNO)])
    <   LogicalProject(DEPTNO=[$0], NAME=[$1])
    <     LogicalFilter(condition=[>=($0, $cor1.DEPTNO)])
    <       LogicalTableScan(table=[[CATALOG, SALES, DEPT]])
    < })], variablesSet=[[$cor1]])
    <     LogicalTableScan(table=[[CATALOG, SALES, EMP]])
    < ]]>
    <     </Resource>
    <   </TestCase>
    <   <TestCase name="testWithOrder">
    <     <Resource name="sql">
    <       <![CDATA[with emp2 as (select * from emp)
    < select * from emp2 order by deptno]]>
    <     </Resource>
    <     <Resource name="plan">
    <       <![CDATA[
    < LogicalSort(sort0=[$7], dir0=[ASC])
    <   LogicalProject(EMPNO=[$0], ENAME=[$1], JOB=[$2], MGR=[$3], 
HIREDATE=[$4], SAL=[$5], COMM=[$6], DEPTNO=[$7], SLACKER=[$8])
    <     LogicalTableScan(table=[[CATALOG, SALES, EMP]])
    < ]]>
    <     </Resource>
    <   </TestCase>
    <   <TestCase name="testWithUnion">
    <     <Resource name="sql">
    <       <![CDATA[with emp2 as (select * from emp where deptno > 10)
    < select empno from emp2 where deptno < 30
    < union all
    < select deptno from emp]]>
    <     </Resource>
    <     <Resource name="plan">
    <       <![CDATA[
    < LogicalUnion(all=[true])
    <   LogicalProject(EMPNO=[$0])
    <     LogicalFilter(condition=[<($7, 30)])
    <       LogicalProject(EMPNO=[$0], ENAME=[$1], JOB=[$2], MGR=[$3], 
HIREDATE=[$4], SAL=[$5], COMM=[$6], DEPTNO=[$7], SLACKER=[$8])
    <         LogicalFilter(condition=[>($7, 10)])
    <           LogicalTableScan(table=[[CATALOG, SALES, EMP]])
    <   LogicalProject(DEPTNO=[$7])
    <     LogicalTableScan(table=[[CATALOG, SALES, EMP]])
    < ]]>
    <     </Resource>
    <   </TestCase>
    <   <TestCase name="testWithUnionOrder">
    <     <Resource name="sql">
    <       <![CDATA[with emp2 as (select empno, deptno as x from emp)
    < select * from emp2
    < union all
    < select * from emp2
    < order by empno + x]]>
    <     </Resource>
    <     <Resource name="plan">
    <       <![CDATA[
    < LogicalProject(EMPNO=[$0], X=[$1])
    <   LogicalSort(sort0=[$2], dir0=[ASC])
    <     LogicalProject(EMPNO=[$0], X=[$1], EXPR$2=[+($0, $1)])
    <       LogicalUnion(all=[true])
    <         LogicalProject(EMPNO=[$0], X=[$7])
    <           LogicalTableScan(table=[[CATALOG, SALES, EMP]])
    <         LogicalProject(EMPNO=[$0], X=[$7])
    <           LogicalTableScan(table=[[CATALOG, SALES, EMP]])
    < ]]>
    <     </Resource>
    <   </TestCase>
    <   <TestCase name="testWithinDistinct1">
    <     <Resource name="sql">
    <       <![CDATA[select avg(empno) within distinct (deptno)
    < from emp]]>
    <     </Resource>
    <     <Resource name="plan">
    <       <![CDATA[
    < LogicalAggregate(group=[{}], EXPR$0=[AVG($0) WITHIN DISTINCT ($1)])
    <   LogicalProject(EMPNO=[$0], DEPTNO=[$7])
    <     LogicalTableScan(table=[[CATALOG, SALES, EMP]])
    < ]]>
    <     </Resource>
    <   </TestCase>
    <   <TestCase name="testWithinGroup1">
    <     <Resource name="sql">
    <       <![CDATA[select deptno,
    <  collect(empno) within group (order by deptno, hiredate desc)
    < from emp
    < group by deptno]]>
    <     </Resource>
    <     <Resource name="plan">
    <       <![CDATA[
    < LogicalAggregate(group=[{0}], EXPR$1=[COLLECT($1) WITHIN GROUP ([0, 2 
DESC])])
    <   LogicalProject(DEPTNO=[$7], EMPNO=[$0], HIREDATE=[$4])
    <     LogicalTableScan(table=[[CATALOG, SALES, EMP]])
    < ]]>
    <     </Resource>
    <   </TestCase>
    <   <TestCase name="testWithinGroup2">
    <     <Resource name="sql">
    <       <![CDATA[select dept.deptno,
    <  collect(sal) within group (order by sal desc) as s,
    <  collect(sal) within group (order by 1)as s1,
    <  collect(sal) within group (order by sal)
    <   filter (where sal > 2000) as s2
    < from emp
    < join dept using (deptno)
    < group by dept.deptno]]>
    <     </Resource>
    <     <Resource name="plan">
    <       <![CDATA[
    < LogicalAggregate(group=[{0}], S=[COLLECT($1) WITHIN GROUP ([1 DESC])], 
S1=[COLLECT($1) WITHIN GROUP ([2])], S2=[COLLECT($1) WITHIN GROUP ([1]) FILTER 
$3])
    <   LogicalProject(DEPTNO=[$9], SAL=[$5], $f2=[1], $f3=[>($5, 2000)])
    <     LogicalJoin(condition=[=($7, $9)], joinType=[inner])
    <       LogicalTableScan(table=[[CATALOG, SALES, EMP]])
    <       LogicalTableScan(table=[[CATALOG, SALES, DEPT]])
    < ]]>
    <     </Resource>
    <   </TestCase>
    <   <TestCase name="testWithinGroup3">
    <     <Resource name="sql">
    <       <![CDATA[select deptno,
    <  collect(empno) within group (order by empno not in (1, 2)), count(*)
    < from emp
    < group by deptno]]>
    <     </Resource>
    <     <Resource name="plan">
    <       <![CDATA[
    < LogicalAggregate(group=[{0}], EXPR$1=[COLLECT($1) WITHIN GROUP ([2])], 
EXPR$2=[COUNT()])
    <   LogicalProject(DEPTNO=[$7], EMPNO=[$0], $f2=[SEARCH($0, Sarg[(-?..1), 
(1..2), (2..+?)])])
    <     LogicalTableScan(table=[[CATALOG, SALES, EMP]])
    < ]]>
    <     </Resource>
    <   </TestCase>
    < </Root>
    
        at 
org.apache.calcite.test.DiffRepository.checkActualAndReferenceFiles(DiffRepository.java:260)
        at 
org.apache.calcite.test.SqlToRelConverterTest.checkActualAndReferenceFiles(SqlToRelConverterTest.java:86)
        at 
org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:725)
        at 
org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
        at 
org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
        at 
org.junit.jupiter.engine.extension.TimeoutInvocation.proceed(TimeoutInvocation.java:46)
        at 
org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149)
        at 
org.junit.jupiter.engine.extension.TimeoutExtension.interceptLifecycleMethod(TimeoutExtension.java:126)
        at 
org.junit.jupiter.engine.extension.TimeoutExtension.interceptAfterAllMethod(TimeoutExtension.java:116)
        at 
org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115)
        at 
org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
        at 
org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
        at 
org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
        at 
org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
        at 
org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
        at 
org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104)
        at 
org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98)
        at 
org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeAfterAllMethods$13(ClassBasedTestDescriptor.java:425)
        at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
        at 
org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeAfterAllMethods$14(ClassBasedTestDescriptor.java:423)
        at java.util.ArrayList.forEach(ArrayList.java:1259)
        at 
java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1082)
        at 
org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.invokeAfterAllMethods(ClassBasedTestDescriptor.java:423)
        at 
org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.after(ClassBasedTestDescriptor.java:225)
        at 
org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.after(ClassBasedTestDescriptor.java:80)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:161)
        at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:161)
        at 
org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
        at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)

FAILURE   7.4sec,  536 completed,   1 failed, 
  3 skipped, 
org.apache.calcite.test.SqlToRelConverterExtendedTest
          0.9sec,   17 completed,   0 failed,   0 skipped, 
org.apache.calcite.test.enumerable.EnumerableUncollectTest
WARNING   7.4sec,  535 completed,   0 failed,   3 
skipped, org.apache.calcite.test.SqlToRelConverterTest
          2.3sec,   25 completed,   0 failed,   0 skipped, 
testHierarchy(boolean, int[], String, boolean, int, String[])
          2.3sec,   25 completed,   0 failed,   0 skipped, 
org.apache.calcite.test.enumerable.EnumerableRepeatUnionHierarchyTest
          2.6sec, 
org.apache.calcite.test.CalciteSqlOperatorTest > 
testMultisetUnionOperator()
          2.6sec, org.apache.calcite.test.JdbcTest > 
testMixedEqualAndIsNotDistinctJoin()
          2.4sec, org.apache.calcite.test.JdbcTest > 
testDistinctCount()
         28.3sec, org.apache.calcite.test.CoreQuidemTest > 
test(String)[5], [5] sql/sub-query.iq
          2.1sec, 
org.apache.calcite.test.CalciteSqlOperatorTest > 
testLikeOperator()
          8.9sec, 
org.apache.calcite.test.CalciteSqlOperatorTest > 
testMysqlSubstrFunction()
          2.1sec, 
org.apache.calcite.test.CalciteSqlOperatorTest > 
testExtractTimestamp()
         24.7sec, org.apache.calcite.test.CoreQuidemTest > 
test(String)[21], [21] sql/agg.iq
         30.2sec,   24 completed,   0 failed,   0 skipped, test(String)
         30.2sec,   24 completed,   0 failed,   0 skipped, 
org.apache.calcite.test.CoreQuidemTest
          3.0sec, 
org.apache.calcite.test.CalciteSqlOperatorTest > 
testIlikeOperator()
          6.3sec, org.apache.calcite.test.JdbcTest > 
testAggMultipleMeasures()
          3.0sec, org.apache.calcite.test.JdbcTest > 
testOrderByVarious()
WARNING  26.3sec,  333 completed,   0 failed,  17 
skipped, org.apache.calcite.test.JdbcTest
          2.1sec, 
org.apache.calcite.test.CalciteSqlOperatorTest > 
testExceptOperator()
         28.1sec, 
org.apache.calcite.test.CalciteSqlOperatorTest > 
testPeriodOperators()
          7.0sec, 
org.apache.calcite.test.CalciteSqlOperatorTest > 
testStandardSubstringFunction()
          2.7sec, 
org.apache.calcite.test.CalciteSqlOperatorTest > 
testExtractDate()
          2.2sec, 
org.apache.calcite.test.CalciteSqlOperatorTest > 
testRegexpReplaceFunc()
          2.0sec, 
org.apache.calcite.test.CalciteSqlOperatorTest > 
testCastStringToDateTime()
          7.4sec, 
org.apache.calcite.test.CalciteSqlOperatorTest > 
testCastExactNumericLimits()
          5.9sec, 
org.apache.calcite.test.CalciteSqlOperatorTest > 
testOracleSubstrFunction()
          3.6sec, 
org.apache.calcite.test.CalciteSqlOperatorTest > 
testJdbcFn()
          4.1sec, 
org.apache.calcite.test.CalciteSqlOperatorTest > 
testSimilarToOperator()
          5.2sec, 
org.apache.calcite.test.CalciteSqlOperatorTest > 
testRandFunc()
          6.7sec, 
org.apache.calcite.test.CalciteSqlOperatorTest > 
testCastToString()
WARNING  34.7sec,  310 completed,   0 failed,   1 
skipped, org.apache.calcite.test.CalciteSqlOperatorTest
         25.8sec, 
org.apache.calcite.test.ReflectiveSchemaTest > testOp()
WARNING  28.4sec,   45 completed,   0 failed,   5 
skipped, org.apache.calcite.test.ReflectiveSchemaTest

Gradle Test Executor 22 STANDARD_OUT
    2022-11-05 08:53:46,700 [ForkJoinPool-1-worker-25] INFO  - Rex fuzzing 
results: number of cases tested=9, failed cases=0, duplicate failures=0, fuzz 
rate=0 per second
         27.4sec, 
org.apache.calcite.test.fuzzer.RexProgramFuzzyTest > 
defaultFuzzTest()
WARNING  30.4sec,    4 completed,   0 failed,   2 
skipped, org.apache.calcite.test.fuzzer.RexProgramFuzzyTest
FAILURE  59.2sec, 7368 completed,   1 failed, 
105 skipped, Gradle Test Run :core:test

7368 tests completed, 1 failed, 105 skipped

> Task :core:test FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':core:test'.
> There were failing tests. See the report at: 
> file://<https://ci-builds.apache.org/job/Calcite/job/Calcite-snapshots/ws/core/build/reports/tests/test/index.html>

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with 
Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings 
and determine if they come from your own scripts or plugins.

See 
https://docs.gradle.org/7.4.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 5m 12s
469 actionable tasks: 469 executed

See the profiling report at: 
file://<https://ci-builds.apache.org/job/Calcite/job/Calcite-snapshots/ws/build/reports/profile/profile-2022-11-05-08-48-39.html>
A fine-grained performance profile is available: use the --scan option.

See the profiling report at: 
file://<https://ci-builds.apache.org/job/Calcite/job/Calcite-snapshots/ws/buildSrc/build/reports/profile/profile-2022-11-05-08-48-41.html>
A fine-grained performance profile is available: use the --scan option.
Build step 'Invoke Gradle script' changed build result to FAILURE
Build step 'Invoke Gradle script' marked build as failure
Recording test results
[Checks API] No suitable checks publisher found.

Reply via email to