-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Fix validation for inner and left join when join_nulls unflaged #19698
Conversation
@@ -44,6 +44,8 @@ pub(super) fn hash_join_tuples_inner<T, I>( | |||
swapped: bool, | |||
validate: JoinValidation, | |||
join_nulls: bool, | |||
// We should know the number of nulls to avoid extra calculation | |||
build_null_count: usize, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't sure about adding this param, but I wanted to avoid performing another pass on all values to calculate it inside the function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's worth it.
@@ -44,6 +44,8 @@ pub(super) fn hash_join_tuples_inner<T, I>( | |||
swapped: bool, | |||
validate: JoinValidation, | |||
join_nulls: bool, | |||
// We should know the number of nulls to avoid extra calculation | |||
build_null_count: usize, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's worth it.
crates/polars-ops/src/frame/join/hash_join/single_keys_inner.rs
Outdated
Show resolved
Hide resolved
Thanks @barak1412. Looks great. |
Fixes #19624.