Skip to content

test: verify final grouping-set aggregation spills - #27828

Open
Hasnaathussain wants to merge 1 commit into
apache:mainfrom
Hasnaathussain:test/verify-grouping-set-spills
Open

Hasnaathussain wants to merge 1 commit into
apache:mainfrom
Hasnaathussain:test/verify-grouping-set-spills

Conversation

@Hasnaathussain

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes #12059.

Rationale for this change

The grouping-set tests can return the expected rows even if the final aggregate stops spilling to disk. The partial aggregate's early-emission check does not cover that path.

What changes are included in this PR?

Use the existing spill-count assertion on the final aggregate. The two forced-spill cases must report a positive count, and the two controls must report zero.

What is the testing strategy for this PR?

All four aggregate_grouping_sets cases and all 3,079 physical-plan unit tests passed locally. The extended workspace run passed 13,667 Rust tests across resumed runs and completed 310 SQL logic files. Formatting and strict all-targets, all-features Clippy passed.

Are there any user-facing changes?

Test coverage only.

Codex assisted with investigating the test coverage, preparing the assertion, and running local checks.

Copilot AI balanced review requested due to automatic review settings November 28, 2026 18:43

Copilot AI left a comment

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@github-actions github-actions Bot added the physical-plan Changes to the physical-plan crate label Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

physical-plan Changes to the physical-plan crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Some aggregation spilling unit tests don't cover spilling to disk logic

2 participants