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

Aperta
#19,188 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@adiranjan25 ci sta già lavorando.

Dal 30/11/2026.

  • #19208 di @adiranjan25 — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
java, spark

Direzione di ricerca

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.

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

Descrizione

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
Lingua principale
Java
Stelle
9.5k
Fork
3.7k
Merge medio
2g 2h
PR unite (30g)
170

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.