Zoltan Borok-Nagy has posted comments on this change. ( 
https://gerrit.cloudera.org/25386 )

Change subject: IMPALA-13081: Chain nested grouping sets in streaming 
preaggregation
......................................................................


Patch Set 2: Code-Review+1

(3 comments)

LGTM!

https://gerrit.cloudera.org/#/c/25386/1//COMMIT_MSG
Commit Message:

https://gerrit.cloudera.org/#/c/25386/1//COMMIT_MSG@47
PS1, Line 47:   this off.
Idea for a follow-up: the merge agg could chain too if the exchange partitioned 
the chained classes on their common prefix (e.g. a for ROLLUP(a, b, c), except 
the grand total). That would cut the shuffle and merge work, but parallelism 
would be capped by the prefix's NDV.


https://gerrit.cloudera.org/#/c/25386/1/fe/src/main/java/org/apache/impala/planner/AggregationNode.java
File fe/src/main/java/org/apache/impala/planner/AggregationNode.java:

https://gerrit.cloudera.org/#/c/25386/1/fe/src/main/java/org/apache/impala/planner/AggregationNode.java@984
PS1, Line 984:     
msg.agg_node.setEstimated_input_cardinality(serialCtx.isTupleCache() ?
> Yeah, will file a separate Jira for the input cardinality estimates of the
computeProcessingCost() has the same issue: it costs the chained classes on 
getChild(0).getCardinality(). Could the Jira cover that too?


https://gerrit.cloudera.org/#/c/25386/2/tests/query_test/test_aggregation.py
File tests/query_test/test_aggregation.py:

https://gerrit.cloudera.org/#/c/25386/2/tests/query_test/test_aggregation.py@717
PS2, Line 717: None
Please assert the real expectation instead of None: duplicate_sets should chain 
(the repeated set is dropped), and ascending_sets shouldn't. Chaining ascending 
sets by ordering the classes from the largest set could be a follow-up.



--
To view, visit https://gerrit.cloudera.org/25386
To unsubscribe, visit https://gerrit.cloudera.org/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I20667d8f97962ddbb10147f498722cc4cf25dd29
Gerrit-Change-Number: 25386
Gerrit-PatchSet: 2
Gerrit-Owner: Yida Wu <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Yida Wu <[email protected]>
Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]>
Gerrit-Comment-Date: Tue, 10 Nov 2026 18:22:06 +0000
Gerrit-HasComments: Yes

Reply via email to