Hello Arnab Karmakar, Steve Carlin, Michael Smith, Impala Public Jenkins,

I'd like you to reexamine a change. Please visit

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

to look at the new patch set (#2).

Change subject: IMPALA-15698: Calcite: fix empty input pruning
......................................................................

IMPALA-15698: Calcite: fix empty input pruning

Keep aggregates with an empty grouping set when pruning empty inputs.
The Calcite rule checks the overall grouping-key count, which can be
nonzero even when one grouping set must produce a grand-total row.
Continue pruning keyed-only aggregates. Skip this rule if the list
of grouping sets itself is empty.

Add independent optimizer tests for literal and runtime-empty inputs,
grouping masks, HAVING, repeated empty sets and keyed-only controls.
These stop before native conversion; the native execution fix is in
IMPALA-15703.

Testing: eight focused optimizer tests pass. Four regressions fail
without the fix as expected. The combined parent/IMPALA-15703 Java
checks pass (25 tests).

Change-Id: I913348568ca984e344b484702110a3bb77c57401
Assisted-by: gpt-6.1-sol
---
M 
java/calcite-planner/src/main/java/org/apache/impala/calcite/service/CalciteOptimizer.java
A 
java/calcite-planner/src/test/java/org/apache/impala/calcite/service/CalciteEmptyPruningTest.java
2 files changed, 153 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/35/25235/2
--
To view, visit http://gerrit.cloudera.org:8080/25235
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I913348568ca984e344b484702110a3bb77c57401
Gerrit-Change-Number: 25235
Gerrit-PatchSet: 2
Gerrit-Owner: Aleksandr Efimov <[email protected]>
Gerrit-Reviewer: Arnab Karmakar <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Michael Smith <[email protected]>
Gerrit-Reviewer: Steve Carlin <[email protected]>

Reply via email to