Skip to content

[branch-52] Clamp early aggregation emit to the sort boundary when using partial group ordering (#20446)#20558

Merged
adriangb merged 1 commit intoapache:branch-52from
alamb:alamb/backport_20446
Feb 26, 2026
Merged

[branch-52] Clamp early aggregation emit to the sort boundary when using partial group ordering (#20446)#20558
adriangb merged 1 commit intoapache:branch-52from
alamb:alamb/backport_20446

Conversation

@alamb
Copy link
Contributor

@alamb alamb commented Feb 25, 2026

Which issue does this PR close?

Rationale for this change

See issues

What changes are included in this PR?

Are these changes tested?

By CI

Are there any user-facing changes?

…group ordering (apache#20446)

## Which issue does this PR close?

<!--
We generally require a GitHub issue to be filed for all bug fixes and
enhancements and this helps us generate change logs for our releases.
You can link an issue to this PR using the GitHub syntax. For example
`Closes apache#123` indicates that this PR will close issue apache#123.
-->

- Closes apache#20445.

## What changes are included in this PR?

Fix a panic on early emit with partial sort aggregations, by clamping
our emit point to the sort boundary

## Are these changes tested?

Yes

## Are there any user-facing changes?

No
@github-actions github-actions bot added the physical-plan Changes to the physical-plan crate label Feb 25, 2026
@alamb alamb changed the title [brnach-53] Clamp early aggregation emit to the sort boundary when using partial group ordering (#20446) [branch-53] Clamp early aggregation emit to the sort boundary when using partial group ordering (#20446) Feb 25, 2026
Copy link
Contributor

@comphead comphead left a comment

Choose a reason for hiding this comment

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

Thanks @alamb

@adriangb adriangb merged commit 38c89a4 into apache:branch-52 Feb 26, 2026
33 checks passed
@alamb alamb changed the title [branch-53] Clamp early aggregation emit to the sort boundary when using partial group ordering (#20446) [branch-52] Clamp early aggregation emit to the sort boundary when using partial group ordering (#20446) Feb 26, 2026
@alamb
Copy link
Contributor Author

alamb commented Feb 26, 2026

Thank you @comphead @adriangb and @phillipleblanc

@alamb alamb deleted the alamb/backport_20446 branch February 26, 2026 11:55
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.

5 participants