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): fix is_in on empty series #10195

Merged
merged 4 commits into from
Jul 31, 2023
Merged

fix(rust, python): fix is_in on empty series #10195

merged 4 commits into from
Jul 31, 2023

Conversation

ritchie46
Copy link
Member

@ritchie46 ritchie46 commented Jul 31, 2023

fixes #10171

@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Jul 31, 2023
@ritchie46 ritchie46 changed the title fix(rust, python): fix is_in on empty series fix(rust, python): fix is_in on empty series Jul 31, 2023
@@ -1045,16 +1045,7 @@ impl Expr {
#[cfg(feature = "is_in")]
pub fn is_in<E: Into<Expr>>(self, other: E) -> Self {
let other = other.into();
let has_literal = has_root_literal_expr(&other);
Copy link
Member Author

Choose a reason for hiding this comment

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

This produced the wrong length and didn't keep the left sides name. We must go through the engine.

@ritchie46 ritchie46 merged commit e3437ec into main Jul 31, 2023
24 checks passed
@ritchie46 ritchie46 deleted the is_in branch July 31, 2023 11:39
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.

Panic with invalid is_in
1 participant