Steve Carlin has posted comments on this change. ( 
https://gerrit.cloudera.org/25137 )

Change subject: IMPALA-14947: Calcite planner: fix parsing issues
......................................................................


Patch Set 13:

(1 comment)

https://gerrit.cloudera.org/#/c/25137/13/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/13/java/calcite-planner/src/main/codegen/templates/Parser.jj@4413
PS13, Line 4413:      AddArg(args, ExprContext.ACCEPT_SUB_QUERY)
> PS14 fixes the valid forms, but `trim()` and `utf8_trim()` now reach `args.
I included a better error message for when here are 0 arguments

However, I did not include the test for 2 reasons:
1) It is in the plans to have a more comprehensive testing of Parsing positives 
and negatives across the planners.  Currently, there are lots of junit tests 
for the original planner.  This needs to be moved over to Calcite. I forget the 
Jira offhand, but there has been work on this in the past. We just need to pick 
this up again.
1) I still don't mind putting in tests in other places, but this is an negative 
edge case and should be self evident to any user of the system.



--
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: 13
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: Thu, 12 Nov 2026 19:31:54 +0000
Gerrit-HasComments: Yes

Reply via email to