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): Take input_schema to create physical expr for Selection #10571

Merged
merged 1 commit into from
Aug 17, 2023

Conversation

reswqa
Copy link
Collaborator

@reswqa reswqa commented Aug 17, 2023

This fixed #10565.

@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Aug 17, 2023
predicate,
Context::Default,
expr_arena,
Some(&input_schema),
Copy link
Collaborator Author

@reswqa reswqa Aug 17, 2023

Choose a reason for hiding this comment

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

I'm not sure if it's due to some reason I don't know that we didn't pass input_schema here. 🤔

@orlp
Copy link
Collaborator

orlp commented Aug 17, 2023

Looks good to me and all tests pass, so let's merge this.

@orlp orlp merged commit 629c25b into pola-rs:main Aug 17, 2023
24 checks passed
@@ -165,10 +165,16 @@ pub fn create_physical_plan(
Ok(Box::new(executors::SliceExec { input, offset, len }))
},
Selection { input, predicate } => {
let input_schema = lp_arena.get(input).schema(lp_arena).into_owned();
Copy link
Member

Choose a reason for hiding this comment

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

Do we really need to clone here? As we pass by reference a few lines later.

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.

n_unique with Utf8 vs IntXX
3 participants