Michael Smith has posted comments on this change. ( https://gerrit.cloudera.org/25137 )
Change subject: IMPALA-14947: Calcite planner: fix parsing issues ...................................................................... Patch Set 9: (7 comments) https://gerrit.cloudera.org/#/c/25137/9//COMMIT_MSG Commit Message: https://gerrit.cloudera.org/#/c/25137/9//COMMIT_MSG@20 PS9, Line 20: - The syntax for first_value, last_value, extract, trim, and utf8_trim are slightly I didn't notice any changes related to extract. https://gerrit.cloudera.org/#/c/25137/9/java/calcite-planner/src/main/codegen/templates/Parser.jj File java/calcite-planner/src/main/codegen/templates/Parser.jj: https://gerrit.cloudera.org/#/c/25137/9/java/calcite-planner/src/main/codegen/templates/Parser.jj@4172 PS9, Line 4172: final SqlNode e; Unused. https://gerrit.cloudera.org/#/c/25137/9/java/calcite-planner/src/main/codegen/templates/Parser.jj@4174 PS9, Line 4174: final Pair<SqlParserPos, SqlOperator> nullTreatment; Unused. https://gerrit.cloudera.org/#/c/25137/9/java/calcite-planner/src/main/java/org/apache/impala/calcite/functions/FunctionResolver.java File java/calcite-planner/src/main/java/org/apache/impala/calcite/functions/FunctionResolver.java: https://gerrit.cloudera.org/#/c/25137/9/java/calcite-planner/src/main/java/org/apache/impala/calcite/functions/FunctionResolver.java@88 PS9, Line 88: .put("div", "quotient") Why is this quotient and not int_divide? https://gerrit.cloudera.org/#/c/25137/9/java/calcite-planner/src/main/java/org/apache/impala/calcite/operators/ImpalaCustomOperatorTable.java File java/calcite-planner/src/main/java/org/apache/impala/calcite/operators/ImpalaCustomOperatorTable.java: https://gerrit.cloudera.org/#/c/25137/9/java/calcite-planner/src/main/java/org/apache/impala/calcite/operators/ImpalaCustomOperatorTable.java@197 PS9, Line 197: ReturnTypes.BIGINT, Should be BIGINT_NULLABLE? https://gerrit.cloudera.org/#/c/25137/9/testdata/workloads/functional-query/queries/QueryTest/calcite.test File testdata/workloads/functional-query/queries/QueryTest/calcite.test: https://gerrit.cloudera.org/#/c/25137/9/testdata/workloads/functional-query/queries/QueryTest/calcite.test@1485 PS9, Line 1485: select 7 DIV 0 Can you also add a test like `tinyint_col DIV 2`? https://gerrit.cloudera.org/#/c/25137/9/testdata/workloads/functional-query/queries/QueryTest/fallback_planner.test File testdata/workloads/functional-query/queries/QueryTest/fallback_planner.test: https://gerrit.cloudera.org/#/c/25137/9/testdata/workloads/functional-query/queries/QueryTest/fallback_planner.test@71 PS9, Line 71: # query used to not compile in Calcite, Calcite currently expects ignore nulls to be I don't think we need to keep this comment. -- To view, visit https://gerrit.cloudera.org/25137 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I5e275f1b0b1f4895a12ac6251e91a39408815a75 Gerrit-Change-Number: 25137 Gerrit-PatchSet: 9 Gerrit-Owner: Steve Carlin <[email protected]> Gerrit-Reviewer: Aleksandr Efimov <[email protected]> Gerrit-Reviewer: Aman Sinha <[email protected]> Gerrit-Reviewer: Fang-Yu Rao <[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: Wed, 04 Nov 2026 19:27:42 +0000 Gerrit-HasComments: Yes
