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

   ### Apache Iceberg version
   
   main (development)
   
   ### Query engine
   
   Spark
   
   ### Please describe the bug 🐞
   
   `UPDATE` and `MERGE INTO` on `db.t.tag_<name>` (or `db.t.snapshot_id_<id>`) 
succeed and modify the **current** table, while `INSERT` and `DELETE` on the 
same target are rejected.
   
   Reproduced on `main` (69a3d2b, 2026-11-23) and 1.12.0, Spark 3.5.5.
   
   ### Reproduction
   
   ```sql
   CREATE TABLE local.t (id INT, v STRING) USING iceberg TBLPROPERTIES 
('format-version'='2');
   INSERT INTO local.t VALUES (1, 'one');
   INSERT INTO local.t VALUES (2, 'two');
   ALTER TABLE local.t CREATE TAG hist;
   INSERT INTO local.t VALUES (3, 'three');
   
   UPDATE local.t.tag_hist SET v = 'changed' WHERE id = 1;          -- succeeds
   MERGE INTO local.t.tag_hist AS t USING (SELECT 2 AS id) AS s ON t.id = s.id
     WHEN MATCHED THEN UPDATE SET v = 'merged';                     -- succeeds
   INSERT INTO local.t.tag_hist VALUES (9, 'nine');                 -- Cannot 
write to table at a specific snapshot
   DELETE FROM local.t.tag_hist WHERE id = 2;                       -- Cannot 
delete from table at a specific snapshot
   
   SELECT id, v FROM local.t ORDER BY id;
   ```
   
   **Expected:** `UPDATE` and `MERGE` are rejected like `INSERT` and `DELETE`; 
`local.t` stays `(1, one), (2, two), (3, three)`.
   
   **Actual:** `local.t` becomes `(1, changed), (2, merged), (3, three)`, with 
two new `overwrite` snapshots. The tag still points to `(1, one), (2, two)`.
   
   ### 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