[CALCITE-6690] Arrow adapter support DECIMAL with precision and scale #14352
Annotations
4 errors and 1 warning
Test:
ArrowAdapterTest.java#L746
0.3sec org.apache.calcite.adapter.arrow.ArrowAdapterTest > testFilteredAgg()
java.lang.AssertionError:
Expected: a string containing "PLAN=EnumerableAggregate(group=[{}], SALESSUM=[SUM($0) FILTER $1])\n EnumerableCalc(expr#0..7=[{inputs}], expr#8=[CAST($t6):DECIMAL(10, 2)], expr#9=[400.00:DECIMAL(10, 2)], expr#10=[>($t8, $t9)], expr#11=[IS TRUE($t10)], SAL=[$t5], $f1=[$t11])\n ArrowToEnumerableConverter\n ArrowTableScan(table=[[ARROW, EMP]], fields=[[0, 1, 2, 3, 4, 5, 6, 7]])\n\n"
but: was "PLAN=EnumerableAggregate(group=[{}], SALESSUM=[SUM($0) FILTER $1])\n EnumerableCalc(expr#0..7=[{inputs}], expr#8=[CAST($t6):DECIMAL(12, 2)], expr#9=[400.00:DECIMAL(12, 2)], expr#10=[>($t8, $t9)], expr#11=[IS TRUE($t10)], SAL=[$t5], $f1=[$t11])\n ArrowToEnumerableConverter\n ArrowTableScan(table=[[ARROW, EMP]], fields=[[0, 1, 2, 3, 4, 5, 6, 7]])\n\n"
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:6)
at org.apache.calcite.test.CalciteAssert.lambda$checkResultContains$7(CalciteAssert.java:472)
at org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:587)
at org.apache.calcite.test.CalciteAssert$AssertQuery.lambda$returns$1(CalciteAssert.java:1535)
at org.apache.calcite.test.CalciteAssert$AssertQuery.withConnection(CalciteAssert.java:1474)
at org.apache.calcite.test.CalciteAssert$AssertQuery.returns(CalciteAssert.java:1533)
at org.apache.calcite.test.CalciteAssert$AssertQuery.explainMatches(CalciteAssert.java:1732)
at org.apache.calcite.test.CalciteAssert$AssertQuery.explainContains(CalciteAssert.java:1628)
at org.apache.calcite.adapter.arrow.ArrowAdapterTest.testFilteredAgg(ArrowAdapterTest.java:746)
Suppressed: org.apache.calcite.util.TestUtil$ExtraInformation: With materializationsEnabled=false, limit=2, sql=explain plan for select SUM(SAL) FILTER (WHERE COMM > 400) as SALESSUM from EMP
at app//org.apache.calcite.util.TestUtil.rethrow(TestUtil.java:401)
at app//org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:603)
... 6 more
|
Test:
ArrowAdapterTest.java#L764
0.1sec org.apache.calcite.adapter.arrow.ArrowAdapterTest > testFilteredAggGroupBy()
java.lang.AssertionError:
Expected: a string containing "PLAN=EnumerableCalc(expr#0..1=[{inputs}], SALESSUM=[$t1])\n EnumerableAggregate(group=[{0}], SALESSUM=[SUM($1) FILTER $2])\n EnumerableCalc(expr#0..7=[{inputs}], expr#8=[CAST($t6):DECIMAL(10, 2)], expr#9=[400.00:DECIMAL(10, 2)], expr#10=[>($t8, $t9)], expr#11=[IS TRUE($t10)], EMPNO=[$t0], SAL=[$t5], $f2=[$t11])\n ArrowToEnumerableConverter\n ArrowTableScan(table=[[ARROW, EMP]], fields=[[0, 1, 2, 3, 4, 5, 6, 7]])\n\n"
but: was "PLAN=EnumerableCalc(expr#0..1=[{inputs}], SALESSUM=[$t1])\n EnumerableAggregate(group=[{0}], SALESSUM=[SUM($1) FILTER $2])\n EnumerableCalc(expr#0..7=[{inputs}], expr#8=[CAST($t6):DECIMAL(12, 2)], expr#9=[400.00:DECIMAL(12, 2)], expr#10=[>($t8, $t9)], expr#11=[IS TRUE($t10)], EMPNO=[$t0], SAL=[$t5], $f2=[$t11])\n ArrowToEnumerableConverter\n ArrowTableScan(table=[[ARROW, EMP]], fields=[[0, 1, 2, 3, 4, 5, 6, 7]])\n\n"
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:6)
at org.apache.calcite.test.CalciteAssert.lambda$checkResultContains$7(CalciteAssert.java:472)
at org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:587)
at org.apache.calcite.test.CalciteAssert$AssertQuery.lambda$returns$1(CalciteAssert.java:1535)
at org.apache.calcite.test.CalciteAssert$AssertQuery.withConnection(CalciteAssert.java:1474)
at org.apache.calcite.test.CalciteAssert$AssertQuery.returns(CalciteAssert.java:1533)
at org.apache.calcite.test.CalciteAssert$AssertQuery.explainMatches(CalciteAssert.java:1732)
at org.apache.calcite.test.CalciteAssert$AssertQuery.explainContains(CalciteAssert.java:1628)
at org.apache.calcite.adapter.arrow.ArrowAdapterTest.testFilteredAggGroupBy(ArrowAdapterTest.java:764)
Suppressed: org.apache.calcite.util.TestUtil$ExtraInformation: With materializationsEnabled=false, limit=2, sql=explain plan for select SUM(SAL) FILTER (WHERE COMM > 400) as SALESSUM from EMP group by EMPNO
at app//org.apache.calcite.util.TestUtil.rethrow(TestUtil.java:401)
at app//org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:603)
... 6 more
|
Test:
task ':arrow:test'#L1
Execution failed for task ':arrow:test':
org.gradle.api.internal.exceptions.MarkedVerificationException: There were failing tests. See the report at: file:///home/runner/work/calcite/calcite/arrow/build/reports/tests/test/index.html
|
Test
Unknown error
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading