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

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


Patch Set 2:

(3 comments)

http://gerrit.cloudera.org:8080/#/c/25137/2/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/25137/2/java/calcite-planner/src/main/codegen/templates/Parser.jj@4192
PS2, Line 4192:      <FROM>
> `select utf8_trim(' abc ')` works on the parent but fails to parse on PS2 b
Not sure why I thought the utf8 trim functions didn't handle FROM

Anyways...

I combined the trim and utf8 functions so they should act the same now.

The tests are located in expr-test.  I think this should be comprehensive 
enough.  Currently it doesn't test for Calcite planner, but it will in the near 
future.  If for some reason it didn't compile it would still fallback, so the 
tests should be adequate for now until that piece is put in.


http://gerrit.cloudera.org:8080/#/c/25137/2/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:

http://gerrit.cloudera.org:8080/#/c/25137/2/java/calcite-planner/src/main/java/org/apache/impala/calcite/operators/ImpalaCustomOperatorTable.java@180
PS2, Line 180:           ReturnTypes.INTEGER_QUOTIENT_NULLABLE,
> With Calcite and no fallback, `select 7 div 0` returns 0 instead of NULL on
Done


http://gerrit.cloudera.org:8080/#/c/25137/2/java/calcite-planner/src/main/java/org/apache/impala/calcite/operators/ImpalaCustomOperatorTable.java@192
PS2, Line 192:           ReturnTypes.ARG0,
> Factorial should return BIGINT, but ARG0 makes `5!` return TINYINT. `20!` f
Tests are in expr-test and will be activated soon.



--
To view, visit http://gerrit.cloudera.org:8080/25137
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I5e275f1b0b1f4895a12ac6251e91a39408815a75
Gerrit-Change-Number: 25137
Gerrit-PatchSet: 2
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: Mon, 19 Oct 2026 21:15:36 +0000
Gerrit-HasComments: Yes

Reply via email to