Aleksandr Efimov has posted comments on this change. ( http://gerrit.cloudera.org:8080/24253 )
Change subject: IMPALA-14459: Calcite planner: support Impala values statements ...................................................................... Patch Set 7: (2 comments) http://gerrit.cloudera.org:8080/#/c/24253/7/java/calcite-planner/src/main/codegen/templates/Parser.jj File java/calcite-planner/src/main/codegen/templates/Parser.jj: http://gerrit.cloudera.org:8080/#/c/24253/7/java/calcite-planner/src/main/codegen/templates/Parser.jj@2427 PS7, Line 2427: ( These two queries work with Calcite on the parent revision but fail to parse on PS7: `values ((1+2)*3,4)` and `values ((1+2),4)`. They still work with ORIGINAL fallback, so this is easy to miss. Could we adjust the grammar to handle these expressions too and add tests for them? http://gerrit.cloudera.org:8080/#/c/24253/7/java/calcite-planner/src/main/java/org/apache/impala/calcite/service/ImpalaSqlValidatorImpl.java File java/calcite-planner/src/main/java/org/apache/impala/calcite/service/ImpalaSqlValidatorImpl.java: http://gerrit.cloudera.org:8080/#/c/24253/7/java/calcite-planner/src/main/java/org/apache/impala/calcite/service/ImpalaSqlValidatorImpl.java@334 PS7, Line 334: throw new CalciteContextException("", new UnsupportedFeatureException( It looks like this exception gets wrapped in AnalysisException, so the automatic fallback does not pick it up. `select a.val from (values (1 as val),(2)) a` fails with fallback_planner=NONE or CALCITE, but works with ORIGINAL. Also, adding another cross join to the two-table test skips this check and gives a missing-column error. Could we handle the wrapped exception and check nested joins too, with tests for both cases? -- To view, visit http://gerrit.cloudera.org:8080/24253 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I9d0724c392152260391f47bc5ef1dfbb5c9d4648 Gerrit-Change-Number: 24253 Gerrit-PatchSet: 7 Gerrit-Owner: Steve Carlin <[email protected]> Gerrit-Reviewer: Aleksandr Efimov <[email protected]> Gerrit-Reviewer: Aman Sinha <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Joe McDonnell <[email protected]> Gerrit-Reviewer: Michael Smith <[email protected]> Gerrit-Comment-Date: Tue, 13 Oct 2026 14:38:30 +0000 Gerrit-HasComments: Yes
