incubator-gluten
incubator-gluten copied to clipboard
[GLUTEN-7647][CH] Lazy expand for aggregation
What changes were proposed in this pull request?
(Please fill in changes proposed in this fix)
Fixes: #7647
Reduce the size of data explosion of expand
.
-
Move the
expand
after theaggregate
which is in stageinitial to intermedate
. -
Add a
aggregate
step after theexpand
for aggregating low cardinality grouping keys.
How was this patch tested?
(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)
unit tests
(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)