Hello Steve Carlin, Michael Smith,

I'd like you to do a code review. Please visit

    http://gerrit.cloudera.org:8080/25233

to review the following change.


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

IMPALA-15695: Coerce BOOLEAN inputs to SUM

Match the original planner by coercing BOOLEAN operands to BIGINT
before SUM argument validation. Keep other functions and operand types
on the existing coercion path.

Add analysis coverage and shared query cases for NULL and empty input,
DISTINCT and analytic SUM.

Testing: 14 focused FE tests passed with an isolated test fixture;
8 BOOLEAN cases fail on the baseline. Both compiler factories accept
all 7 test queries after the fix, with matching output metadata.
Shared QueryTest execution was not run.

Change-Id: I4be510a6674d1c006e88ddaad4d4e3a7a40df4f6
Assisted-by: gpt-6.1-sol
---
M 
java/calcite-planner/src/main/java/org/apache/impala/calcite/type/ImpalaTypeCoercionImpl.java
A 
java/calcite-planner/src/test/java/org/apache/impala/calcite/service/CalciteSumBooleanTest.java
M testdata/workloads/functional-query/queries/QueryTest/aggregation.test
3 files changed, 173 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/33/25233/1
--
To view, visit http://gerrit.cloudera.org:8080/25233
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4be510a6674d1c006e88ddaad4d4e3a7a40df4f6
Gerrit-Change-Number: 25233
Gerrit-PatchSet: 1
Gerrit-Owner: Aleksandr Efimov <[email protected]>
Gerrit-Reviewer: Michael Smith <[email protected]>
Gerrit-Reviewer: Steve Carlin <[email protected]>

Reply via email to