Zoltan Borok-Nagy has posted comments on this change. ( 
https://gerrit.cloudera.org/25233 )

Change subject: IMPALA-15695: Coerce BOOLEAN inputs to SUM
......................................................................


Patch Set 1: Code-Review+1

(1 comment)

Thanks for working on this!

https://gerrit.cloudera.org/#/c/25233/1/java/calcite-planner/src/main/java/org/apache/impala/calcite/type/ImpalaTypeCoercionImpl.java
File 
java/calcite-planner/src/main/java/org/apache/impala/calcite/type/ImpalaTypeCoercionImpl.java:

https://gerrit.cloudera.org/#/c/25233/1/java/calcite-planner/src/main/java/org/apache/impala/calcite/type/ImpalaTypeCoercionImpl.java@54
PS1, Line 54: SqlKind.SUM
AVG, STDDEV and VARIANCE on BOOLEAN fail the same way in Calcite, while the 
original planner returns DOUBLE. Also checking 
SqlKind.AVG_AGG_FUNCTIONS.contains(kind) here fixes all of them with matching 
types. But it's OK to fix them separately.



--
To view, visit https://gerrit.cloudera.org/25233
To unsubscribe, visit https://gerrit.cloudera.org/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I4be510a6674d1c006e88ddaad4d4e3a7a40df4f6
Gerrit-Change-Number: 25233
Gerrit-PatchSet: 1
Gerrit-Owner: Aleksandr Efimov <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Michael Smith <[email protected]>
Gerrit-Reviewer: Steve Carlin <[email protected]>
Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]>
Gerrit-Comment-Date: Wed, 04 Nov 2026 15:52:06 +0000
Gerrit-HasComments: Yes

Reply via email to