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: Fix projection count query optimization #21162

Merged
merged 1 commit into from
Feb 10, 2025
Merged

fix: Fix projection count query optimization #21162

merged 1 commit into from
Feb 10, 2025

Conversation

ritchie46
Copy link
Member

fixes #21154

@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Feb 10, 2025
expr_arena: &mut Arena<AExpr>,
) {
// if empty: all columns are already projected.
if !acc_projections.is_empty() && !projected_names.contains(&name) {
// if not pushed down: all columns are already projected.
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 is the fix

Copy link
Contributor

The uncompressed lib size after this PR is 39.7190 MB.

@ritchie46 ritchie46 merged commit 2a5c9af into main Feb 10, 2025
26 checks passed
@ritchie46 ritchie46 deleted the projection branch February 10, 2025 12:56
Copy link

codecov bot commented Feb 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.88%. Comparing base (65848bc) to head (6b84285).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #21162      +/-   ##
==========================================
+ Coverage   79.81%   79.88%   +0.07%     
==========================================
  Files        1593     1593              
  Lines      227649   227634      -15     
  Branches     2600     2600              
==========================================
+ Hits       181699   181847     +148     
+ Misses      45353    45190     -163     
  Partials      597      597              

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

braaannigan pushed a commit to braaannigan/polars that referenced this pull request Feb 12, 2025
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.

Lazy select(len()) fails after unique() on first column
1 participant