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 pars I rechecked the generated parser on PS8. `values ((1+2),4)` and `values ((1+2)*3,4)` still fail to parse, while both pass on the parent revision. Could we adjust the grammar to handle these expressions? The new test also expects the first query to pass. 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 auto 25144 PS2 adds the exception unwrapping, but the nested JOIN case still misses the guard: `select a.val from (values(1 as val)) a cross join (values(2,3)) b cross join (values(4,5)) c`. The PS8 validator reports `Column 'VAL' not found` instead of throwing UnsupportedFeatureException. Could we recurse into both JOIN children and add a test for this case? -- 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-Reviewer: Steve Carlin <[email protected]> Gerrit-Comment-Date: Mon, 19 Oct 2026 19:12:47 +0000 Gerrit-HasComments: Yes
