Skip to content

perf(sort): passthrough last stream that left in SortPreservingMergeStream#23328

Draft
rluvaton wants to merge 2 commits into
apache:mainfrom
rluvaton:passthrough-last-stream
Draft

perf(sort): passthrough last stream that left in SortPreservingMergeStream#23328
rluvaton wants to merge 2 commits into
apache:mainfrom
rluvaton:passthrough-last-stream

Conversation

@rluvaton

@rluvaton rluvaton commented Jul 5, 2026

Copy link
Copy Markdown
Member

Which issue does this PR close?

N/A

Rationale for this change

No need to go through the entire Loser tree mechanism when only 1 stream left, so in that case, just passthrough last stream

What changes are included in this PR?

added passthrough for last stream in SortPreservingMergeStream

Are these changes tested?

Yes, basic test + existing tests

Are there any user-facing changes?

No


FYI, this is one of many upcoming optimizations that I will do for Sort

@github-actions github-actions Bot added the physical-plan Changes to the physical-plan crate label Jul 5, 2026
@rluvaton rluvaton marked this pull request as draft July 5, 2026 21:46
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