Aleksandr Efimov has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/25235 )

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


Patch Set 1:

(5 comments)

http://gerrit.cloudera.org:8080/#/c/25235/1//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/25235/1//COMMIT_MSG@7
PS1, Line 7: IMPALA-15698: Calcite planner: keep grand totals
> Please mention empty-input prune so it is distinguishable from IMPALA-15703
Updated the title in PS2 to name empty input pruning and distinguish it from 
IMPALA-15703.


http://gerrit.cloudera.org:8080/#/c/25235/1/java/calcite-planner/src/main/java/org/apache/impala/calcite/service/CalciteOptimizer.java
File 
java/calcite-planner/src/main/java/org/apache/impala/calcite/service/CalciteOptimizer.java:

http://gerrit.cloudera.org:8080/#/c/25235/1/java/calcite-planner/src/main/java/org/apache/impala/calcite/service/CalciteOptimizer.java@112
PS1, Line 112: getGroupSets
> Unlikely but there could be an edge case where getGroupSets() is empty, and
Added a nonempty group-set list check before noneMatch() in PS2.


http://gerrit.cloudera.org:8080/#/c/25235/1/java/calcite-planner/src/test/java/org/apache/impala/calcite/service/CalciteEmptyPruningTest.java
File 
java/calcite-planner/src/test/java/org/apache/impala/calcite/service/CalciteEmptyPruningTest.java:

http://gerrit.cloudera.org:8080/#/c/25235/1/java/calcite-planner/src/test/java/org/apache/impala/calcite/service/CalciteEmptyPruningTest.java@55
PS1, Line 55:     assertMixedGrandTotal(plan("select a ka, grouping(a) ga, 
grouping_id(a) gid, "
> First failure can hide the second.
Split the paired scenarios into independent tests in PS2.


http://gerrit.cloudera.org:8080/#/c/25235/1/java/calcite-planner/src/test/java/org/apache/impala/calcite/service/CalciteEmptyPruningTest.java@96
PS1, Line 96: var
> Can we use the explicit types instead of var. Same for line 98.
Replaced var with explicit types in PS2.


http://gerrit.cloudera.org:8080/#/c/25235/1/java/calcite-planner/src/test/java/org/apache/impala/calcite/service/CalciteEmptyPruningTest.java@99
PS1, Line 99: setDecimal_v2
> Is decimal_v2 needed for this test?
Removed decimal_v2 from the test options in PS2.



--
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: comment
Gerrit-Change-Id: I913348568ca984e344b484702110a3bb77c57401
Gerrit-Change-Number: 25235
Gerrit-PatchSet: 1
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]>
Gerrit-Comment-Date: Thu, 29 Oct 2026 13:28:13 +0000
Gerrit-HasComments: Yes

Reply via email to