Repository navigation
feat: Hive partition pruning in distributed reads - #18
Merged
Merged
Conversation
Skip Parquet files whose Hive partition values (year=2024/month=01/) don't match pipeline filter predicates. Extracts simple equality predicates from filter ops and matches against partition key-value pairs parsed from file paths. Integrated into the Partitioner before size-balanced assignment — fewer files to distribute means better balance and less IO. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
New
Dux.Remote.PartitionPrunermodule that skips Parquet files whose Hive partition values don't match pipeline filter predicates. Integrated into the Partitioner before size-balanced assignment.How it works
Given files like
s3://bucket/year=2024/month=01/data.parquetand a filteryear = 2024, the pruner:key=valuepairs from file path segments{:filter, sql}opsWhat it handles
"year" = 2024,year = 2024)region = 'US')year = 2024 AND month = '01')What it doesn't handle (safe — just reads more data)
Test plan
PartitionPruner(extraction, pruning, edge cases):peertests (end-to-end pruning with real distributed workers + Hive-partitioned Parquet)🤖 Generated with Claude Code