smaheshwar-pltr opened a new issue, #17734: URL: https://github.com/apache/iceberg/issues/17734
### Apache Iceberg version 1.11.0 (latest release) ### Query engine None ### Please describe the bug 🐞 https://github.com/apache/iceberg/pull/13301 fixed https://github.com/apache/iceberg/issues/11162, but not for the case where the table currently has no snapshot. For example, consider a WAP-style workflow where a table has snapshots potentially with different schemas, but does not have a snapshot on its main branch yet. If those snapshots with non-main schemas are read via time travel, planning a filter on a column that existed in the snapshot fails with e.g. ``` Cannot find field 'data' in struct: struct<1: id: required long, 3: part: required string> ``` This is the same problem as in the above PR / issue, except the fix PR included a `currentSnapshot() == null` special case that causes this to remain when the table has no snapshots. ### Willingness to contribute - [x] 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]
