-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
feat: Filter Parquet pages with ParquetColumnExpr
#20714
Open
coastalwhite
wants to merge
12
commits into
pola-rs:main
Choose a base branch
from
coastalwhite:feat/parquet-expr
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,518
−814
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
enhancement
New feature or an improvement of an existing feature
python
Related to Python Polars
rust
Related to Rust Polars
labels
Jan 14, 2025
coastalwhite
requested review from
ritchie46,
orlp and
c-peters
as code owners
January 15, 2025 16:03
coastalwhite
changed the title
feat: Start working with
feat: Filter Parquet pages with Jan 15, 2025
ParquetColumnExpr
ParquetColumnExpr
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #20714 +/- ##
==========================================
+ Coverage 79.03% 79.44% +0.40%
==========================================
Files 1559 1570 +11
Lines 221238 223230 +1992
Branches 2529 2530 +1
==========================================
+ Hits 174851 177340 +2489
+ Misses 45806 45308 -498
- Partials 581 582 +1 ☔ View full report in Codecov by Sentry. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
enhancement
New feature or an improvement of an existing feature
needs-bench
Needs a benchmark run
python
Related to Python Polars
rust
Related to Rust Polars
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a
ParquetColumnExpr
which allows predicate filtering while reading Parquet pages. While this is currently implemented with many limitations, this can eventually allow for way more granular filtering of items without having to traverse all pages. This is especially beneficial for equality predicates and predicates over dictionary encoded pages. Another nice side effect is that it shouldmassively reduce the memory consumption for strict queries.
At the moment, this is only triggered if there is a single binary expression with a column on one side and a scalar on the other side.
It can be disabled with by setting the environment variable
POLARS_NO_PARQUET_EXPR=1
.