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(python): Improve join argument checks #18847

Merged
merged 2 commits into from
Sep 23, 2024

Conversation

mcrumiller
Copy link
Contributor

@mcrumiller mcrumiller commented Sep 22, 2024

Closes #18842 and closes #18846.

@github-actions github-actions bot added fix Bug fix python Related to Python Polars labels Sep 22, 2024
Copy link

codecov bot commented Sep 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.87%. Comparing base (f08885c) to head (db3a52c).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #18847      +/-   ##
==========================================
+ Coverage   79.85%   79.87%   +0.01%     
==========================================
  Files        1518     1518              
  Lines      205637   205647      +10     
  Branches     2893     2895       +2     
==========================================
+ Hits       164210   164258      +48     
+ Misses      40879    40841      -38     
  Partials      548      548              

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

@mcrumiller
Copy link
Contributor Author

@stinodego I don't suppose there's a way to deprecate a parameter in only certain circumstances? Suddenly raising when on is supplied to a cross join is definitely a change in behavior, even though on is an unused parameter in that case.

@ritchie46 ritchie46 merged commit 12abd03 into pola-rs:main Sep 23, 2024
15 checks passed
@ritchie46
Copy link
Member

Thanks @mcrumiller.

@stinodego
Copy link
Member

@stinodego I don't suppose there's a way to deprecate a parameter in only certain circumstances? Suddenly raising when on is supplied to a cross join is definitely a change in behavior, even though on is an unused parameter in that case.

There is, but you would have to 'manually' do this with the issue_deprecation_warning util.

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cross join should raise when on is provided join can be called with both on= and left_on=
3 participants