viirya opened a new issue, #3690: URL: https://github.com/apache/iceberg-rust/issues/3690
`TableScanBuilder` can select a snapshot with `snapshot_id` or `as_of_time`, but it has no way to scan a named branch or tag, as Java's `TableScan.useRef(String)` does. Resolving the ref yourself and passing its id to `snapshot_id` does not give the same result. `snapshot_id` reads with the schema the snapshot was written with. Java reads a branch, including `main`, with the table's current schema, and a tag with its snapshot's schema (`SnapshotUtil.schemaFor(Table, String)`). The table's `refs` map is also crate-private, so callers cannot tell whether a ref is a branch or a tag. Proposal: add `TableScanBuilder::use_ref(name)`, with Java's schema rules. `build` returns an error when the ref does not exist, or when `snapshot_id` or `as_of_time` is also set (Java rejects these combinations too). -- 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]
