Skip to content

Commit b6f6990

Browse files
authored
refactor: extract aggregate physical planning (apache#26403)
## Which issue does this PR close? - Part of apache#26300. ## Rationale for this change `DefaultPhysicalPlanner::map_logical_node_to_physical` contains the complete aggregate planning implementation inline. Moving this arm behind a focused method makes the top-level logical-plan dispatcher easier to navigate and reduces conflict pressure around planner changes. ## What changes are included in this PR? This PR extracts only the `Aggregate` arm into a private `plan_aggregate` method. Schema validation, grouping expression lowering, async expression planning, repartition selection, and partial/final aggregate construction are unchanged. ## What is the testing strategy for this PR? - `cargo test -p datafusion --lib physical_planner::tests` - `cargo clippy -p datafusion --all-targets --all-features -- -D warnings` - `cargo fmt --all -- --check` - `git diff --check` The existing physical planner tests cover aggregate schema checks, grouping sets, repartitioning, aliases, and scalar subqueries; no new behavior is introduced. ## Are there any user-facing changes? No. This is an internal refactor with no public API or behavior change.
1 parent 5009f42 commit b6f6990

1 file changed

Lines changed: 207 additions & 187 deletions

File tree

0 commit comments

Comments
 (0)