Yibo-Dong opened a new issue, #19141: URL: https://github.com/apache/iceberg/issues/19141
### Apache Iceberg version main (development) ### Query engine Spark ### Please describe the bug 🐞 `ALTER TABLE local.t.branch_work CREATE BRANCH child` (and `CREATE TAG`) succeeds, but the new ref points at the head of `main` instead of `work`: the branch selector is accepted and ignored. Reproduced on `main` (2e12b22, 2026-11-25) and 1.12.0, Spark 3.5.5. ### Reproduction ```sql CREATE TABLE local.t (id INT) USING iceberg; INSERT INTO local.t VALUES (1); ALTER TABLE local.t CREATE BRANCH work; INSERT INTO local.t VALUES (2); -- main: 1, 2 INSERT INTO local.t.branch_work VALUES (3); -- work: 1, 3 ALTER TABLE local.t.branch_work CREATE BRANCH child; ALTER TABLE local.t.branch_work CREATE TAG child_tag; SELECT 'work' AS marker, collect_list(id) FROM (SELECT id FROM local.t.branch_work ORDER BY id); SELECT 'branch_child' AS marker, collect_list(id) FROM (SELECT id FROM local.t.branch_child ORDER BY id); SELECT 'tag_child' AS marker, collect_list(id) FROM (SELECT id FROM local.t.tag_child_tag ORDER BY id); ``` ### Expected vs. actual | | Expected | Actual | |---|---|---| | `work` | `[1,3]` | `[1,3]` | | `branch_child` | `[1,3]` (or the `ALTER` is rejected) | `[1,2]` | | `tag_child` | `[1,3]` (or the `ALTER` is rejected) | `[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]
