Hello Aman Sinha, Fang-Yu Rao, Aleksandr Efimov, Joe McDonnell, Michael Smith, 
Impala Public Jenkins,

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

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

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

Change subject: IMPALA-14947: Calcite planner: fix parsing issues
......................................................................

IMPALA-14947: Calcite planner: fix parsing issues

This commit fixes a plethora of parsing issues in the Calcite planner, 
including:

- CAST(expression AS type FORMAT pattern) for date formatting issues. The FORMAT
parameter is captured in the SQLNode and passed along. In order to handle this,
changes were made to AnalyzedCastExpr, RexCallConverter, and 
ImpalaConvertletTable.

- various keywords had to be placed into config.fmpp. This files contains 
keywords
that are also used as Impala function names and parsed as generic Impala 
functions.

- Support for &&, &, DIV, typeof() and factorial (!)  have been added

- The syntax for first_value, last_value, extract, trim, and utf8_trim are 
slightly
different in Impala and support for these functions has been added.

- The ILIKE and RLIKE were defined in Calcite, but in a SpecialOperators class 
which
is not visible by default. These variables were added to the
ImpalaCustomOperatorTable.

Change-Id: I5e275f1b0b1f4895a12ac6251e91a39408815a75
---
M java/calcite-planner/src/main/codegen/config.fmpp
M java/calcite-planner/src/main/codegen/templates/Parser.jj
M 
java/calcite-planner/src/main/java/org/apache/impala/calcite/functions/AnalyzedCastExpr.java
M 
java/calcite-planner/src/main/java/org/apache/impala/calcite/functions/FunctionResolver.java
M 
java/calcite-planner/src/main/java/org/apache/impala/calcite/functions/RexCallConverter.java
M 
java/calcite-planner/src/main/java/org/apache/impala/calcite/operators/ImpalaConvertletTable.java
M 
java/calcite-planner/src/main/java/org/apache/impala/calcite/operators/ImpalaCustomOperatorTable.java
M 
java/calcite-planner/src/main/java/org/apache/impala/calcite/operators/ImpalaOperatorTable.java
M 
java/calcite-planner/src/main/java/org/apache/impala/calcite/type/ImpalaTypeSystemImpl.java
M testdata/workloads/functional-query/queries/QueryTest/calcite.test
M testdata/workloads/functional-query/queries/QueryTest/fallback_planner.test
11 files changed, 233 insertions(+), 36 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/37/25137/7
--
To view, visit http://gerrit.cloudera.org:8080/25137
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I5e275f1b0b1f4895a12ac6251e91a39408815a75
Gerrit-Change-Number: 25137
Gerrit-PatchSet: 7
Gerrit-Owner: Steve Carlin <[email protected]>
Gerrit-Reviewer: Aleksandr Efimov <[email protected]>
Gerrit-Reviewer: Aman Sinha <[email protected]>
Gerrit-Reviewer: Fang-Yu Rao <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Joe McDonnell <[email protected]>
Gerrit-Reviewer: Michael Smith <[email protected]>
Gerrit-Reviewer: Steve Carlin <[email protected]>

Reply via email to