nastra commented on issue #9737: URL: https://github.com/apache/iceberg/issues/9737#issuecomment-2025665097
> @namrathamyske you can force reading with the snapshot id on a branch by using the time travel statement. > > ``` > select * from default.t.branch_b1 for timestamp as of now(); > ``` > > This is use the current snapshot and is equivalent to reading from the head of the branch with the snapshot schema. However, the branches write schema will track with the table schema. I just checked this workaround and it actually returns the latest snapshot id of the `main` branch rather than the latest snapshot id of `b1` because there's no logic in https://github.com/apache/iceberg/blob/2a39af894f4f00aa37922ef765cc2583517fa1d1/spark/v3.5/spark/src/main/java/org/apache/iceberg/spark/SparkCatalog.java#L224-L225 that takes the branch into account. I've opened https://github.com/apache/iceberg/issues/10058 to address that -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org