Skip to content

Parquet pruning lives in two places (Iceberg and Delta): decide where it should live #1910

Open

Description

@bplatz

Summary

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:

Decision needed

Where should Parquet-level pruning live? Options:

  1. 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.
  2. 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.
  3. 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.

Raised in review of #1899.

Activity

  1. added
    P3
    triage:needs-decision
    area:iceberg
    on Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3area:icebergtriage:needs-decision

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions