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(rust,python): Allow partial name overlap in join_where resolution #19128

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

wence-
Copy link
Collaborator

@wence- wence- commented Oct 7, 2024

When checking if both sides of an expression in a join_where call are from the right table (for which overlapping names will be suffixed) we must exclude undecorated names which also appear in the left table.

@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Oct 7, 2024
@wence- wence- marked this pull request as draft October 7, 2024 17:55
When checking if both sides of an expression in a `join_where` call
are from the right table (for which overlapping names will be
suffixed) we must exclude undecorated names which also appear in the
left table.

- Closes pola-rs#19119
@wence- wence- changed the title fix(rust,python): Check with suffixed names in join_where resolution fix(rust,python): Allow partial name overlap in join_where resolution Oct 8, 2024
options.args.suffix.as_deref(),
options.args.suffix().as_str(),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is drive-by, can split out.

Copy link

codecov bot commented Oct 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.76%. Comparing base (d7c93bb) to head (e6704b8).
Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #19128      +/-   ##
==========================================
- Coverage   79.79%   79.76%   -0.04%     
==========================================
  Files        1531     1531              
  Lines      208611   208434     -177     
  Branches     2913     2913              
==========================================
- Hits       166453   166247     -206     
- Misses      41607    41636      +29     
  Partials      551      551              

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

@wence- wence- marked this pull request as ready for review October 8, 2024 09:24
Copy link
Member

@ritchie46 ritchie46 left a comment

Choose a reason for hiding this comment

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

Nice one. Thanks!

@ritchie46 ritchie46 merged commit 2a7e165 into pola-rs:main Oct 8, 2024
27 checks passed
@wence- wence- deleted the wence/fix/19119 branch October 16, 2024 13:21
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.

join_where raises InvalidOperation when right frame contains names from left frame and some additional ones
2 participants