Skip to content

Simplify logic for memory pressure partial emit from ordered group by#20559

Draft
alamb wants to merge 3 commits intoapache:mainfrom
alamb:alamb/simpler_partial_emit
Draft

Simplify logic for memory pressure partial emit from ordered group by#20559
alamb wants to merge 3 commits intoapache:mainfrom
alamb:alamb/simpler_partial_emit

Conversation

@alamb
Copy link
Contributor

@alamb alamb commented Feb 25, 2026

Which issue does this PR close?

Rationale for this change

I found the formulation of the fix in #20446 hard to follow (see #20446 (review) for details).

Basically the meaning of emit_to and 0 are inverted in this case.

What changes are included in this PR?

Pull the logic of what to emit into its own function with more comments that I think make it clearer what is going on

Are these changes tested?

Yes by existing tests

Are there any user-facing changes?

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.

1 participant