Skip to content

Comments

fix: SortMergeJoin don't wait for all input before emitting#20482

Draft
rluvaton wants to merge 8 commits intoapache:mainfrom
rluvaton:fix-not-early-emit
Draft

fix: SortMergeJoin don't wait for all input before emitting#20482
rluvaton wants to merge 8 commits intoapache:mainfrom
rluvaton:fix-not-early-emit

Conversation

@rluvaton
Copy link
Member

@rluvaton rluvaton commented Feb 22, 2026

Which issue does this PR close?

N/A

Rationale for this change

Looks like from playing around with local tests and debugging memory issue I have that SortMergeJoinStream wait for all input before start emitting, which shouldn't be the case as we can emit early when we have enough data.

also, less memory usage.

What changes are included in this PR?

Trying to fix the issue, not sure yet

Are these changes tested?

Yes

Are there any user-facing changes?


TODO:

  • update docs
  • finish fix

@github-actions github-actions bot added the physical-plan Changes to the physical-plan crate label Feb 22, 2026
}

// TODO - NEED TO CHECK IF WE HAVE ENOUGH DATA TO FILL BATCH
// TODO - WHAT ABOUT
Copy link
Contributor

Choose a reason for hiding this comment

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

WHAT 👏 ABOUT 👏

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.

2 participants