Skip to content
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 incorrect result from inequality filter after join on LazyFrame #19898

Merged
merged 2 commits into from
Nov 21, 2024

Conversation

nameexhaustion
Copy link
Collaborator

Fixes #19772

@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Nov 21, 2024
@@ -45,8 +45,7 @@ fn should_block_join_specific(
// the join can produce null values
// TODO! check if we can be less conservative here
BinaryExpr { op, left, right } => match op {
Operator::NotEq => LeftRight(false, false),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

inequality had its own branch - I'm not sure why but I've removed it

@@ -62,7 +61,7 @@ fn should_block_join_specific(
},
_ => join_produces_null(how),
},
_ => LeftRight(false, false),
_ => join_produces_null(how),
Copy link
Collaborator Author

@nameexhaustion nameexhaustion Nov 21, 2024

Choose a reason for hiding this comment

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

for catch-all we need to at least follow the join_produces_null rule

Copy link

codecov bot commented Nov 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.43%. Comparing base (3925085) to head (5ee8f61).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #19898      +/-   ##
==========================================
- Coverage   79.43%   79.43%   -0.01%     
==========================================
  Files        1554     1554              
  Lines      215611   215611              
  Branches     2452     2452              
==========================================
- Hits       171278   171277       -1     
- Misses      43775    43776       +1     
  Partials      558      558              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@nameexhaustion nameexhaustion marked this pull request as ready for review November 21, 2024 07:36
@nameexhaustion nameexhaustion marked this pull request as draft November 21, 2024 07:37
@nameexhaustion nameexhaustion marked this pull request as ready for review November 21, 2024 08:11
@ritchie46 ritchie46 merged commit bbb4b2b into pola-rs:main Nov 21, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fix python Related to Python Polars rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lazy/Eager right-join is giving different results
2 participants