You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Parquet pruning lives in two places (Iceberg and Delta): decide where it should live #1910
Delta (#1899) adds its own Parquet-level pruning and row filtering in fluree-db-delta (src/prune.rs for row-group/page pruning, src/datafile.rs for the pruned reader, footer cache and row filter). This sits alongside the existing Iceberg path in fluree-db-iceberg (scan/pruning.rs, io/arrow_reader.rs). The two now hold separate copies of the same rules, and nothing keeps them in step:
Each has its own footer cache and row filter. They have different budgets and different eviction.
A fix or new type rule in one doesn't reach the other. For example: timestamp unit handling, decimal scale, null-count proofs, page-index use.
Decision needed
Where should Parquet-level pruning live? Options:
A shared crate or module that both table formats call. It would hold the stats-to-bound conversion, the comparison rules, and page selection. The catch: Iceberg prunes against manifest statistics before opening files, and Delta against the log's stats plus in-file statistics, so the shared layer would sit below both of those.
Keep both, bound by a shared conformance suite: one table of (column type, statistics, filter) → expected keep/prune, run against both pruners, so any drift shows up as a test failure.
Keep both as they are, and accept the drift risk.
Merging them is a large piece of work and isn't a blocker for #1899. This issue records the decision; option 2 is a cheap way to bound the risk in the meantime.
Activity