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: Ensure output height does not change on lazy projection pushdown with aggregations #20223

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

nameexhaustion
Copy link
Collaborator

@nameexhaustion nameexhaustion commented Dec 9, 2024

Fixes #20220
Fixes #20221
Fixes #20337

This would supercede #20222, but because it is a bigger rewrite, I want this to be merged after the next patch release.

@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Dec 9, 2024
} else {
// Select the last column projection.
let mut name = None;
for (_, plan) in (&*lp_arena).iter(input) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I removed the LP traversal because I don't think it's needed - if the upper node isn't one of the Select / HStack / DataframeScan nodes then it should be safe to take any column

Copy link

codecov bot commented Dec 9, 2024

Codecov Report

Attention: Patch coverage is 95.45455% with 4 lines in your changes missing coverage. Please review.

Project coverage is 79.62%. Comparing base (1cd807f) to head (77e5d14).
Report is 14 commits behind head on main.

Files with missing lines Patch % Lines
.../plans/optimizer/projection_pushdown/projection.rs 95.45% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #20223      +/-   ##
==========================================
- Coverage   79.63%   79.62%   -0.01%     
==========================================
  Files        1565     1565              
  Lines      218192   218192              
  Branches     2475     2475              
==========================================
- Hits       173749   173743       -6     
- Misses      43876    43882       +6     
  Partials      567      567              

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

@ritchie46
Copy link
Member

I will take a look a bit later. Always a bit scared hitting this code.

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
2 participants