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: predicate push-down remove predicate refers to alias for more branch #11887

Merged
merged 1 commit into from
Oct 21, 2023

Conversation

reswqa
Copy link
Collaborator

@reswqa reswqa commented Oct 20, 2023

This fixes #11883. More details see #11883 (comment).

@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Oct 20, 2023
@@ -213,7 +213,7 @@ fn rename_predicate_columns_due_to_aliased_projection(
) -> LoopBehavior {
let projection_aexpr = expr_arena.get(projection_node);
if let AExpr::Alias(_, alias_name) = projection_aexpr {
let alias_name = alias_name.as_ref();
let alias_name = alias_name.clone();
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 to make borrow checker happy.

@reswqa reswqa marked this pull request as ready for review October 20, 2023 16:36
@ritchie46 ritchie46 merged commit ff358ca into pola-rs:main Oct 21, 2023
27 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.

LazyFrame ColumnNotFound when casting to a new column
2 participants