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 1: Code-Review+1

(3 comments)

Thanks for working on this!

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

https://gerrit.cloudera.org/#/c/25386/1//COMMIT_MSG@74
PS1, Line 74: Median times of 5 runs on a release build, with chaining
Could you also measure a rollup whose first set barely reduces the input, e.g. 
ROLLUP(l_orderkey, l_linenumber)? Aggregator 1 still merges ~N rows there, plus 
the extra batch copies.


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@280
PS1, Line 280:   private boolean chainAggregators() {
EXPLAIN doesn't show the chaining, and the per-set "output:" lines list update 
functions while the BE runs merge functions. Could you print it, at least at 
EXTENDED level? That would also let a regular PlannerTest .test file replace 
GroupingSetsChainedPreaggTest.


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() ?
The chained aggregators get the node's full input cardinality as their 
estimate, but their real input is only the previous set's output. 
ShouldExpandPreaggHashTables() then overestimates the reduction and keeps 
growing the hash tables. Could they get the previous set's estimated output 
instead? Could be done in a follow-up Jira.



--
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: 1
Gerrit-Owner: Yida Wu <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]>
Gerrit-Comment-Date: Mon, 09 Nov 2026 17:28:04 +0000
Gerrit-HasComments: Yes

Reply via email to