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

Change subject: IMPALA-15467: Calcite planner: Fix DECIMAL return type 
inference for IF
......................................................................


Patch Set 2:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/25004/2/java/calcite-planner/src/main/java/org/apache/impala/calcite/operators/CommonOperatorFunctions.java
File 
java/calcite-planner/src/main/java/org/apache/impala/calcite/operators/CommonOperatorFunctions.java:

http://gerrit.cloudera.org:8080/#/c/25004/2/java/calcite-planner/src/main/java/org/apache/impala/calcite/operators/CommonOperatorFunctions.java@62
PS2, Line 62:     // IF's first operand is the condition, not a possible return 
value. Keep it
> Just to be clear because I think this is what you are saying in the comment
Yep, exactly. We need all three arguments to resolve IF, then only the two 
branches for the DECIMAL type.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3101917e02cae76c48c9d9aaf0d2913de00daffb
Gerrit-Change-Number: 25004
Gerrit-PatchSet: 2
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-Comment-Date: Mon, 05 Oct 2026 20:31:44 +0000
Gerrit-HasComments: Yes

Reply via email to