Steve Carlin has uploaded this change for review. ( 
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 these queries to
the test framework.

Most of the queries are somewhat similar to those found in the
AnalyzeSubqueriesTest file. Those junit tests are not yet active and
do not test result correctness. This commit should give us a good
base for ensuring proper results are returned.

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
---
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, 310 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/96/24196/1
--
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: newchange
Gerrit-Change-Id: I3a69f1bc2fe2fa2c8840e6c3bcf660370c0c9a46
Gerrit-Change-Number: 24196
Gerrit-PatchSet: 1
Gerrit-Owner: Steve Carlin <[email protected]>

Reply via email to