yashdotrv opened a new pull request, #3777: URL: https://github.com/apache/iceberg-rust/pull/3777
## Which issue does this PR close? - Fixes #3765. ## What changes are included in this PR? - Add `TableMetadata::refs(&self) -> &HashMap<String, SnapshotReference>` as a public read-only accessor, mirroring `TableMetadata::properties()`. - Unlike `schemas_iter()` or `snapshots()`, `SnapshotReference` does not embed the reference name, so returning `&HashMap<String, SnapshotReference>` preserves reference names while providing `O(1)` lookup and zero-cost iteration. - Update `crates/iceberg/public-api.txt` with the new public method signature. ## Are these changes tested? - Added unit test `test_table_metadata_refs` in `crates/iceberg/src/spec/table_metadata.rs` covering empty refs, the default `main` branch, a named branch with retention settings, and a tag. -- 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]
