Skip to content

feat: add a public PartitionFilter utility - #3674

Draft
Perseus wants to merge 2 commits into
apache:mainfrom
Perseus:anirudh.singh/partition-filter
Draft

Perseus wants to merge 2 commits into
apache:mainfrom
Perseus:anirudh.singh/partition-filter

Conversation

@Perseus

@Perseus Perseus commented Nov 11, 2026 •

Copy link
Copy Markdown

Which issue does this PR close?

What changes are included in this PR?

Are these changes tested?

AI Disclosure

… filter

Engines that learn a filter while a query runs, such as a join's keys or
a top-N bound, can use it to skip a file scan task whose partition can't
match, before opening the file.

PartitionFilter reuses the scan's partition filter cache and expression
evaluator, so it projects and evaluates a filter the same way a scan
does when it plans files. The partition filter cache now takes the
partition spec itself, and the expression evaluator can check a
partition value without a data file.
PartitionFilter now projects its filter onto one partition spec when
it's created. It no longer goes through the scan's partition filter
cache, so scan planning is back to how it was. A spec that uses a
dropped column matches every partition.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feature: exposing utilities for partition-based runtime filtering/pruning

1 participant