Skip to content

[VL] Implement push partial agg thru expand rule#12052

Draft
zhouyuan wants to merge 1 commit intoapache:mainfrom
zhouyuan:wip_push_agg_thru_expand
Draft

[VL] Implement push partial agg thru expand rule#12052
zhouyuan wants to merge 1 commit intoapache:mainfrom
zhouyuan:wip_push_agg_thru_expand

Conversation

@zhouyuan
Copy link
Copy Markdown
Member

@zhouyuan zhouyuan commented May 8, 2026

What changes are proposed in this pull request?

This patch adds a optimization rule which can push partial agg thru expand

How was this patch tested?

Was this patch authored or co-authored using generative AI tooling?

Signed-off-by: Yuan <yuanzhou@apache.org>
@github-actions github-actions Bot added CORE works for Gluten Core VELOX labels May 8, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 8, 2026

Run Gluten Clickhouse CI on x86

* (grouping_keys, gid) ExpandExec (augmented) <-- pass-through + null-fill HashAggregateExec
* (partial) <-- pre-agg on original rows, no gid Project BroadcastHashJoin ...
*/
object PushPartialAggThroughExpand extends Rule[SparkPlan] with Logging {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems useful for vanilla Spark as well? Should we consider merging it into the upstream Spark?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CORE works for Gluten Core VELOX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants