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

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


Patch Set 5:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/25137/5/java/calcite-planner/src/main/java/org/apache/impala/calcite/operators/ImpalaConvertletTable.java
File 
java/calcite-planner/src/main/java/org/apache/impala/calcite/operators/ImpalaConvertletTable.java:

http://gerrit.cloudera.org:8080/#/c/25137/5/java/calcite-planner/src/main/java/org/apache/impala/calcite/operators/ImpalaConvertletTable.java@144
PS5, Line 144:     if (call.operandCount() > 2) {
> This checks for operand count > 2 which could mean any number greater than
PS6 needs imports for Preconditions and SqlTypeUtil, and operands is not 
definitely assigned in the final else. After fixing those locally, select 
cast(cast('2024-02-03' as date) as string format 'DD/MM/YYYY') fails this 
check, while Original returns 03/02/2024. FORMAT also supports DATE/TIMESTAMP 
to STRING. Could we keep that direction and add a test?



--
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: 5
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, 26 Oct 2026 08:15:56 +0000
Gerrit-HasComments: Yes

Reply via email to