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 (#4).
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. Keep this customized rule in
ImpalaCoreRules.
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: focused Java compilation passed. Optimizer runtime tests were
blocked by missing timezone data in the test environment.
Change-Id: I913348568ca984e344b484702110a3bb77c57401
Assisted-by: gpt-6.1-sol
---
M
java/calcite-planner/src/main/java/org/apache/impala/calcite/rules/ImpalaCoreRules.java
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
3 files changed, 154 insertions(+), 1 deletion(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/35/25235/4
--
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: 4
Gerrit-Owner: Aleksandr Efimov <[email protected]>
Gerrit-Reviewer: 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]>