Yibo-Dong opened a new issue, #19271: URL: https://github.com/apache/iceberg/issues/19271
### Apache Iceberg version main (development) ### Query engine Spark ### Please describe the bug 🐞 A time-travel query `WHERE x = 1` returns rows with other values of `x` when, in the current schema, `x` names a different column that is an identity partition source (here after swapping column names). No error is raised. Reproduced on `main` (3bfa3e4, 2026-12-01) and 1.12.0, Spark 3.5.5. ### Reproduction ```sql CREATE TABLE local.db.t (x INT, p INT) USING iceberg PARTITIONED BY (p); INSERT INTO local.db.t VALUES (1, 10), (2, 10), (3, 20); ALTER TABLE local.db.t CREATE TAG t1; -- swap names: x becomes y, the partition source p becomes x ALTER TABLE local.db.t RENAME COLUMN x TO y; ALTER TABLE local.db.t RENAME COLUMN p TO x; -- main moves on after the tag INSERT INTO local.db.t VALUES (4, 30); -- control: same predicate, not pushed down SELECT 'control', * FROM local.db.t VERSION AS OF 't1' WHERE x + 0 = 1; SELECT 'pushed', * FROM local.db.t VERSION AS OF 't1' WHERE x = 1; ``` ### Expected | Query | Result | |---|---| | `control` | `1 10` | | `pushed` | `1 10` | ### Actual | Query | Result | |---|---| | `control` | `1 10` | | `pushed` | `1 10`, `2 10` | ### 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 -- 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]
