Core: Expose status-filtered CloseableIterables on ManifestReader

Aperta
#18,996 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@regadas ci sta già lavorando.

Dal 16/11/2026.

  • #18997 di @regadas — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
20/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
java

Direzione di ricerca

Read ManifestReader and the existing iterator() and select(...) APIs, then inspect tests for manifest reads. Add status-filtered CloseableIterable accessors for ADDED and DELETED entries that preserve defensive copies and dropStats(columns) projection; verify streaming behavior on mixed-status manifests. A linked pull request is already open.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Feature Request / Improvement

Snapshot.addedDataFiles(FileIO), removedDataFiles(FileIO), addedDeleteFiles(FileIO), and removedDeleteFiles(FileIO) were deprecated in #15241 in favor of SnapshotChanges. However, SnapshotChanges eagerly materializes both added and removed file lists in memory with full column statistics and requires a Table instance via SnapshotChanges.builderFor(Table).

Services that inspect newly committed snapshots from TableMetadata / Snapshot (such as catalog commit hooks, audit, or lineage listeners) often need to stream only ADDED or DELETED files with column projection (e.g. partition or file_path only) without decoding column-stats maps or materializing opposite-status entries.

ManifestFiles.read(manifest, io, specsById) and ManifestReader.select(...) are already public, but ManifestReader.iterator() only exposes liveEntries() (ADDED + EXISTING), while ManifestReader.entries() and ManifestEntry are package-private. As a result, external callers cannot filter rewritten manifests containing mixed ADDED, EXISTING, and DELETED entries without split-package shims in org.apache.iceberg (and in-core CherryPickOperation.validateReplacedPartitions similarly hand-rolls this filter).

Exposing addedFiles() and deletedFiles() returning CloseableIterable<F> on ManifestReader<F> (with defensive copies honoring dropStats(columns), matching iterator()) allows streaming status-filtered manifest reads with column projection while keeping ManifestEntry package-private.

Query engine

Other

Willingness to contribute
  • I can contribute this improvement/feature independently
  • I would be willing to contribute this improvement/feature with guidance from the Iceberg community
  • I cannot contribute this improvement/feature at this time
Lingua principale
Java
Stelle
9.4k
Fork
3.7k
Merge medio
2g 15h
PR unite (30g)
169

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/iceberg

Tutte le issue di apache/iceberg

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.