Hello Steve Carlin, Michael Smith, Impala Public Jenkins,

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

    https://gerrit.cloudera.org/25077

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

Change subject: IMPALA-15530: Preserve Calcite expression labels
......................................................................

IMPALA-15530: Preserve Calcite expression labels

Save source labels before validation rewrites calls and qualifies
identifiers. Render STRING and DECIMAL casts using Impala syntax.
Preserve interval unit spelling, including subsecond units, and avoid
MySQL's extra parentheses. Change only the copy used to render labels.
Keep source label collection and rendering in CalciteParsedStatement.

Run the SQL regressions through the shared expression suite. Keep direct
Java label tests and add a shell header regression for decimal casts.
Accept either planner's lexical-error text in the escaped-quote shell
test; keep its valid and invalid query checks.

Testing: 17 focused Java tests passed. Shared SQL passed for both
planners with fallback disabled and expression rewrites off/on:
56 result sets, 112 rows, matching values and complete HS2 schemas.
Shell: 37 of 39 selected cases passed under Calcite over HS2 and HS2 HTTP.
The two escaped-quote failures were fixed; the focused rerun passed
with both planners over both protocols (4 cases).
The new decimal header regression passed over both protocols.

Change-Id: I0e91b2ff8008513d0a097af806a2437ca725a542
---
M 
java/calcite-planner/src/main/java/org/apache/impala/calcite/service/CalciteParsedStatement.java
M 
java/calcite-planner/src/main/java/org/apache/impala/calcite/service/CalciteRelNodeConverter.java
A 
java/calcite-planner/src/test/java/org/apache/impala/calcite/service/CalciteColumnLabelsTest.java
A testdata/workloads/functional-query/queries/QueryTest/expression-labels.test
M tests/query_test/test_exprs.py
M tests/shell/test_shell_commandline.py
M tests/shell/test_shell_interactive.py
7 files changed, 498 insertions(+), 31 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/77/25077/7
--
To view, visit https://gerrit.cloudera.org/25077
To unsubscribe, visit https://gerrit.cloudera.org/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I0e91b2ff8008513d0a097af806a2437ca725a542
Gerrit-Change-Number: 25077
Gerrit-PatchSet: 7
Gerrit-Owner: Aleksandr Efimov <[email protected]>
Gerrit-Reviewer: Aleksandr Efimov <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Michael Smith <[email protected]>
Gerrit-Reviewer: Steve Carlin <[email protected]>

Reply via email to