xanderbailey commented on code in PR #3777:
URL: https://github.com/apache/iceberg-rust/pull/3777#discussion_r4792065104
##########
crates/iceberg/src/spec/table_metadata.rs:
##########
@@ -4575,4 +4582,46 @@ mod tests {
.collect();
assert_eq!(names, vec!["y", "z"]);
}
+
+ #[test]
+ fn test_table_metadata_refs() {
Review Comment:
I don't know if we need a test for a simple getter, what are we actually
trying to test here?
##########
crates/iceberg/src/spec/table_metadata.rs:
##########
@@ -338,6 +338,12 @@ impl TableMetadata {
})
}
+ /// Returns all snapshot references (branches and tags) of the table.
+ #[inline]
+ pub fn refs(&self) -> &HashMap<String, SnapshotReference> {
+ &self.refs
+ }
Review Comment:
Java exposes this and also ref(string) -> SnapshotRef which alsi seems like
it might be useful but isn't blocking for this PR.
https://github.com/apache/iceberg/blob/56c11c953d28c0547a058635babebefddfc26dcb/core/src/main/java/org/apache/iceberg/TableMetadata.java#L554-L560
--
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]