Commit b16ad9b
authored
fix: SortMergeJoin don't wait for all input before emitting (#20482)
## Which issue does this PR close?
N/A
## Rationale for this change
I noticed while playing around with local tests and debugging memory
issue, 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, this cause huge memory pressure
## 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:
- [x] update docs
- [x] finish fix1 parent db5197b commit b16ad9b
3 files changed
Lines changed: 562 additions & 34 deletions
Lines changed: 35 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| |||
598 | 600 | | |
599 | 601 | | |
600 | 602 | | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
601 | 635 | | |
602 | 636 | | |
603 | 637 | | |
604 | 638 | | |
605 | 639 | | |
606 | 640 | | |
607 | | - | |
| 641 | + | |
608 | 642 | | |
609 | 643 | | |
610 | 644 | | |
| |||
0 commit comments