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 predicate pushdown for .list.(get|gather) #17511

Merged
merged 3 commits into from
Jul 9, 2024

Conversation

nameexhaustion
Copy link
Collaborator

Incorrectly pushed down causing ComputeErrors

Fixes #17492

@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Jul 9, 2024
/// Examples of expressions whose results would change, and thus block push-down:
/// - any aggregation - sum, mean, first, last, min, max etc.
/// - sorting - as the sort keys would change between filters
pub(super) fn aexpr_blocks_predicate_pushdown(node: Node, expr_arena: &Arena<AExpr>) -> bool {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

unused old code

Copy link

codecov bot commented Jul 9, 2024

Codecov Report

Attention: Patch coverage is 71.42857% with 2 lines in your changes missing coverage. Please review.

Project coverage is 80.46%. Comparing base (3629ea2) to head (6c17468).

Files Patch % Lines
...an/src/plans/optimizer/predicate_pushdown/utils.rs 60.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #17511      +/-   ##
==========================================
- Coverage   80.47%   80.46%   -0.02%     
==========================================
  Files        1482     1482              
  Lines      195133   195119      -14     
  Branches     2778     2778              
==========================================
- Hits       157042   156996      -46     
- Misses      37580    37612      +32     
  Partials      511      511              

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

@ritchie46 ritchie46 merged commit a5724d6 into pola-rs:main Jul 9, 2024
26 checks passed
@nameexhaustion nameexhaustion deleted the list-gather-pred-pd branch July 19, 2024 12:23
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.

Problematic predicate pusdown when filtering based on list index.
2 participants