Fix Left join implementation is incorrect for 0 or multiple batches on the right side#238
Merged
Dandandan merged 10 commits intoapache:masterfrom May 2, 2021
Merged
Fix Left join implementation is incorrect for 0 or multiple batches on the right side#238Dandandan merged 10 commits intoapache:masterfrom
Dandandan merged 10 commits intoapache:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #238 +/- ##
==========================================
+ Coverage 76.46% 76.76% +0.30%
==========================================
Files 135 134 -1
Lines 23250 23248 -2
==========================================
+ Hits 17777 17847 +70
+ Misses 5473 5401 -72
Continue to review full report at Codecov.
|
3 tasks
andygrove
approved these changes
May 2, 2021
Member
andygrove
left a comment
There was a problem hiding this comment.
LGTM. I pulled this branch locally and confirmed that this fixes the failing tests. Thanks, @Dandandan!
jorgecarleitao
approved these changes
May 2, 2021
Member
jorgecarleitao
left a comment
There was a problem hiding this comment.
Yap, the implementation makes a lot of sense. Thanks a lot @Dandandan !
houqp
approved these changes
May 2, 2021
Contributor
Author
|
Merging this when it's green |
mustafasrepo
added a commit
that referenced
this pull request
Dec 25, 2023
* Add first reverse support for partitioned join conversion * Minor changes * minor changes * Minor changes * Add ordering requirement propogation * Remove wrong check * Simplifications * Simplifications * Minor changes * Minor changes * add test case * Review * Propagate group by and aggregate through join * Minor changes * Minor changes * Simplifications * Buggy state * Minor changes * Simplifications * Add comments * Update comments * Update join_pipeline_selection.rs * Mini * Update comments * Fix formatting * Review --------- Co-authored-by: metesynnada <100111937+metesynnada@users.noreply.github.com> Co-authored-by: Mehmet Ozan Kabak <ozankabak@gmail.com>
mustafasrepo
added a commit
that referenced
this pull request
Dec 25, 2023
* Add first reverse support for partitioned join conversion * Minor changes * minor changes * Minor changes * Add ordering requirement propogation * Remove wrong check * Simplifications * Simplifications * Minor changes * Minor changes * add test case * Review * Propagate group by and aggregate through join * Minor changes * Minor changes * Simplifications * Buggy state * Minor changes * Simplifications * Add comments * Update comments * Update join_pipeline_selection.rs * Mini * Update comments * Fix formatting * Review --------- Co-authored-by: metesynnada <100111937+metesynnada@users.noreply.github.com> Co-authored-by: Mehmet Ozan Kabak <ozankabak@gmail.com>
unkloud
pushed a commit
to unkloud/datafusion
that referenced
this pull request
Mar 23, 2025
* Only maps FIXED_LEN_BYTE_ARRAY to String for uuid type * remove redundant code --------- Co-authored-by: Huaxin Gao <huaxin.gao@apple.com>
H0TB0X420
pushed a commit
to H0TB0X420/datafusion
that referenced
this pull request
Oct 7, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
Closes #235
Closes #239
Closes #143
Rationale for this change
Fixes behavior of left join with regard to multiple batches on the right side and 0 right side batches.
This way it also also likely much faster as it avoids keeping generating / keeping / indexing into a
HashSetfor each right side batch.What changes are included in this PR?
Vec<bool>to keep track of left-side rows that didn't match with the right side. (number o left rows bytes extra memory usage for left joins, not that much compared to storing the left side data and hashmap + indices. It could be more memory-efficient by using a bitmap instead.Are there any user-facing changes?
Only correctness improvements