Core: Expose status-filtered CloseableIterables on ManifestReader

オープン
#18,996 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@regadas がすでに取り組んでいます。

2026年11月16日 から。

  • #18997 @regadas による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
20/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
java

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
Java
スター
9.4k
フォーク
3.7k
平均マージ
2日 15時間
マージ済み PR(30日)
169

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/iceberg のほかの issue

apache/iceberg の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。