Commit caf48ae
fix: SortMergeJoin don't wait for all input before emitting (apache#20482)
N/A
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
Trying to fix the issue, not sure yet
Yes
-----
- [x] update docs
- [x] finish fix1 parent da4014d commit caf48ae
3 files changed
Lines changed: 554 additions & 23 deletions
Lines changed: 35 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| |||
830 | 832 | | |
831 | 833 | | |
832 | 834 | | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
833 | 867 | | |
834 | 868 | | |
835 | 869 | | |
836 | 870 | | |
837 | 871 | | |
838 | 872 | | |
839 | | - | |
| 873 | + | |
840 | 874 | | |
841 | 875 | | |
842 | 876 | | |
| |||
0 commit comments