Hello Zoltan Borok-Nagy, Steve Carlin, Michael Smith, Impala Public Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/25004
to look at the new patch set (#4).
Change subject: IMPALA-15467: Fix Calcite IF DECIMAL return type
......................................................................
IMPALA-15467: Fix Calcite IF DECIMAL return type
Exclude IF's BOOLEAN condition from DECIMAL return-type inference,
fixing INVALID_TYPE for valid DECIMAL branches.
CalciteOptimizerTest adds testIfDecimalReturnTypeExcludesCondition
and testIfDoubleAndDecimalCaseControls. QueryTest/if-decimal covers
NULL branches, mixed DECIMAL types and scanned conditions. Run the
same SQL from TestExprs and TestCalcitePlanner; the latter forces
Calcite.
Testing: both Java tests passed; the baseline reproduces INVALID_TYPE.
Shared QueryTest and TestCalcitePlanner passed (60 SELECT profiles),
with codegen on/off and shared-suite rewrites on/off.
Change-Id: I3101917e02cae76c48c9d9aaf0d2913de00daffb
Assisted-by: gpt-6.1-sol
---
M
java/calcite-planner/src/main/java/org/apache/impala/calcite/operators/CommonOperatorFunctions.java
M
java/calcite-planner/src/test/java/org/apache/impala/calcite/service/CalciteOptimizerTest.java
A testdata/workloads/functional-query/queries/QueryTest/if-decimal.test
M tests/query_test/test_calcite_planner.py
M tests/query_test/test_exprs.py
5 files changed, 112 insertions(+), 1 deletion(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/04/25004/4
--
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: newpatchset
Gerrit-Change-Id: I3101917e02cae76c48c9d9aaf0d2913de00daffb
Gerrit-Change-Number: 25004
Gerrit-PatchSet: 4
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-Reviewer: Zoltan Borok-Nagy <[email protected]>