Hello Aman Sinha, Kurt Deschler, Jason Fehr, Joe McDonnell, Csaba Ringhofer, 
Michael Smith, Impala Public Jenkins,

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/24196

to look at the new patch set (#2).

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
---
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(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/96/24196/2
--
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: newpatchset
Gerrit-Change-Id: I3a69f1bc2fe2fa2c8840e6c3bcf660370c0c9a46
Gerrit-Change-Number: 24196
Gerrit-PatchSet: 2
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]>

Reply via email to