Yibo-Dong opened a new issue, #19188:
URL: https://github.com/apache/iceberg/issues/19188

   ### 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
   
   ```sql
   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
   - [x] I cannot contribute a fix for this bug at this time


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to