Aleksandr Efimov has posted comments on this change. ( https://gerrit.cloudera.org/25234 )
Change subject: IMPALA-15697, IMPALA-15535: Unreserve keywords ...................................................................... Patch Set 3: (5 comments) https://gerrit.cloudera.org/#/c/25234/3//COMMIT_MSG Commit Message: https://gerrit.cloudera.org/#/c/25234/3//COMMIT_MSG@7 PS3, Line 7: IMPALA-15697: Calcite planner: unreserve keywords > This also fixes IMPALA-15535, so please put both IDs in the title ("IMPALA- Added both Jira IDs to the title in PS4. https://gerrit.cloudera.org/#/c/25234/3/java/calcite-planner/src/main/codegen/config.fmpp File java/calcite-planner/src/main/codegen/config.fmpp: https://gerrit.cloudera.org/#/c/25234/3/java/calcite-planner/src/main/codegen/config.fmpp@399 PS3, Line 399: "USER" > `user` as a qualifier still fails: `select user.a from (select 1 as a) user Fixed USER qualifiers in PS4 and added parser and query tests for SELECT, GROUP BY and CTEs. https://gerrit.cloudera.org/#/c/25234/3/java/calcite-planner/src/main/codegen/config.fmpp@400 PS3, Line 400: ] > FYI: 22 other words in the original planner's whitelist (sql-scanner.flex:4 Agreed, the remaining keywords can be handled separately. https://gerrit.cloudera.org/#/c/25234/3/java/calcite-planner/src/test/java/org/apache/impala/calcite/service/CalciteKeywordIdentifierTest.java File java/calcite-planner/src/test/java/org/apache/impala/calcite/service/CalciteKeywordIdentifierTest.java: https://gerrit.cloudera.org/#/c/25234/3/java/calcite-planner/src/test/java/org/apache/impala/calcite/service/CalciteKeywordIdentifierTest.java@124 PS3, Line 124: public void testUserColumn() throws ParseException { > Passes without the fix: `select USER` already parses via ContextVariable(). Combined the keyword cases into a loop and added regressions that fail with the old grammar in PS4. https://gerrit.cloudera.org/#/c/25234/3/testdata/workloads/functional-query/queries/QueryTest/exprs.test File testdata/workloads/functional-query/queries/QueryTest/exprs.test: https://gerrit.cloudera.org/#/c/25234/3/testdata/workloads/functional-query/queries/QueryTest/exprs.test@3 PS3, Line 3: # IMPALA-15535: TIME is an unquoted identifier in both planners. > These pass without the fix: test_exprs uses the default fallback_planner=OR Moved the query cases to calcite.test in PS4 so fallback cannot hide parse errors. -- To view, visit https://gerrit.cloudera.org/25234 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I81d63e18667939a4e34fba5fd6579a1b33e1b695 Gerrit-Change-Number: 25234 Gerrit-PatchSet: 3 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]> Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]> Gerrit-Comment-Date: Fri, 06 Nov 2026 08:46:18 +0000 Gerrit-HasComments: Yes
