procedures called on `db.t.branch_b` act on `main`

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

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

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

2026年11月30日 から。

  • #19208 @adiranjan25 による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
52/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
java, spark

調査の方向性

Start by tracing how Spark procedures resolve the table argument and select a branch or snapshot; the report names add_files, set_current_snapshot, rewrite_manifests, compute_table_stats, and rewrite_data_files as comparison points. Reproduce the SQL example against Iceberg 1.12.0 or the reported main revision and inspect the procedure tests. Done when procedures consistently commit to the requested branch and the regression is covered by tests.

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

説明

bug
Apache Iceberg version

1.12.0 (latest release)

Query engine

Spark

Please describe the bug 🐞

CALL add_files(table => 'db.t.branch_b', ...) succeeds but commits the files to main, not to branch b. Other procedures ignore the branch the same way, e.g. set_current_snapshot, rewrite_manifests and compute_table_stats; only rewrite_data_files honors it. Reproduced on main (9d4f6c7, 2026-11-28) and 1.12.0, Spark 3.5.5.

Reproduction
CREATE TABLE local.db.t (id INT) USING iceberg;
INSERT INTO local.db.t VALUES (1);
ALTER TABLE local.db.t CREATE BRANCH b;
-- control: INSERT honors the branch
INSERT INTO local.db.t.branch_b VALUES (2);

CREATE TABLE src (id INT) USING parquet LOCATION '/tmp/src';
INSERT INTO src VALUES (100);
CALL local.system.add_files(table => 'db.t.branch_b', source_table => '`parquet`.`/tmp/src`');

SELECT 'main', collect_list(id) FROM (SELECT id FROM local.db.t ORDER BY id);
SELECT 'b', collect_list(id) FROM (SELECT id FROM local.db.t.branch_b ORDER BY id);
Expected
Query Result
main [1]
b [1,2,100]
Actual
Query Result
main [1,100]
b [1,2]
Willingness to contribute
  • I can contribute a fix for this bug independently
  • I would be willing to contribute a fix for this bug with guidance from the Iceberg community
  • I cannot contribute a fix for this bug at this time
主要言語
Java
スター
9.5k
フォーク
3.7k
平均マージ
2日 2時間
マージ済み PR(30日)
170

環境構築

はじめの一歩

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

apache/iceberg のほかの issue

apache/iceberg の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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