Steve Carlin has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/24196 )
Change subject: IMPALA-14895: Added tests for newly supported Calcite queries ...................................................................... IMPALA-14895: Added tests for newly supported Calcite queries Calcite supports parsing and analyzing for some standard SQL queries which the original planner doesn't. This commit adds end to end tests for these queries to the test framework. IMPALA-14901 has been created for adding explain plans for these tests into the test framework. Most of the queries are somewhat similar to those found in the AnalyzeSubqueriesTest file. Those junit tests just validate that an error is thrown since they are not supported. This commit will test that the queries now parse and will test the results for correctness. A small change had to be added to ImpalaAggRel for a query within calcite_subquery.test that was failing. The line in the file did not match the comment. All output expressions from the CardinalityCheck input should be passed through the cardinality check, whereas the code was only passing through the first one. When the input ref was doing a cardinality check for the second inputref field, the query was throwing an exception during compilation time. One extra test was thrown into this commit, for IMPALA-5098 which does a SELECT DISTINCT with analytic functions. Change-Id: I3a69f1bc2fe2fa2c8840e6c3bcf660370c0c9a46 Reviewed-on: http://gerrit.cloudera.org:8080/24196 Reviewed-by: Aman Sinha <[email protected]> Tested-by: Impala Public Jenkins <[email protected]> --- M java/calcite-planner/src/main/java/org/apache/impala/calcite/rel/node/ImpalaAggRel.java M testdata/workloads/functional-query/queries/QueryTest/calcite.test A testdata/workloads/functional-query/queries/QueryTest/calcite_subquery.test M tests/query_test/test_calcite_planner.py 4 files changed, 295 insertions(+), 2 deletions(-) Approvals: Aman Sinha: Looks good to me, approved Impala Public Jenkins: Verified -- To view, visit http://gerrit.cloudera.org:8080/24196 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: I3a69f1bc2fe2fa2c8840e6c3bcf660370c0c9a46 Gerrit-Change-Number: 24196 Gerrit-PatchSet: 3 Gerrit-Owner: Steve Carlin <[email protected]> Gerrit-Reviewer: Aman Sinha <[email protected]> Gerrit-Reviewer: Csaba Ringhofer <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Jason Fehr <[email protected]> Gerrit-Reviewer: Joe McDonnell <[email protected]> Gerrit-Reviewer: Kurt Deschler <[email protected]> Gerrit-Reviewer: Michael Smith <[email protected]> Gerrit-Reviewer: Steve Carlin <[email protected]>
