-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Merged
Merged
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
coastalwhite
force-pushed
the
feat/parquet-expr
branch
2 times, most recently
from
January 23, 2025 15:21
582e147
to
fb7158a
Compare
coastalwhite
force-pushed
the
feat/parquet-expr
branch
from
January 24, 2025 14:22
fb7158a
to
1fecfdc
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
accepted
Ready for implementation
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 should massively 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 enabled with by setting the environment variable
POLARS_PARQUET_EXPR=1
.