Steve Carlin has submitted this change and it was merged. (
https://gerrit.cloudera.org/25391 )
Change subject: IMPALA-14459 (addendum): Fix broken values test for Calcite
planner
......................................................................
IMPALA-14459 (addendum): Fix broken values test for Calcite planner
The Calcite planner was failing for the following query:
values (concat('a', 'b'), 1);
This query was being treated as a values clause that had double
parens because there is a comma within the second paren.
This is easily fixed by ensuring that a double parens values
clause can only exist when the first two tokens are parens.
Testing: Added unit test
Change-Id: I4e8aa65fa1d44b90cc2fcbab7bfd095e218f3d71
Reviewed-on: https://gerrit.cloudera.org/25391
Reviewed-by: Michael Smith <[email protected]>
Reviewed-by: Aleksandr Efimov <[email protected]>
Reviewed-by: Joe McDonnell <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
---
M java/calcite-planner/src/main/codegen/templates/Parser.jj
M
java/calcite-planner/src/test/java/org/apache/impala/calcite/service/CalciteValuesLiteralTest.java
2 files changed, 18 insertions(+), 0 deletions(-)
Approvals:
Michael Smith: Looks good to me, but someone else must approve
Aleksandr Efimov: Looks good to me, but someone else must approve
Joe McDonnell: Looks good to me, approved
Impala Public Jenkins: Verified
--
To view, visit https://gerrit.cloudera.org/25391
To unsubscribe, visit https://gerrit.cloudera.org/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I4e8aa65fa1d44b90cc2fcbab7bfd095e218f3d71
Gerrit-Change-Number: 25391
Gerrit-PatchSet: 3
Gerrit-Owner: Steve Carlin <[email protected]>
Gerrit-Reviewer: Aleksandr Efimov <[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]>
Gerrit-Reviewer: Wellington Cabrera <[email protected]>