This is an automated email from the ASF dual-hosted git repository.
liurenjie1024 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-rust.git
The following commit(s) were added to refs/heads/main by this push:
new ea9a1aea chore: Add manifest metadata accessor (#1399)
ea9a1aea is described below
commit ea9a1aeadc3c4dc895eaf7dd9380913f9406589d
Author: dentiny <[email protected]>
AuthorDate: Fri Jun 6 03:37:51 2025 -0700
chore: Add manifest metadata accessor (#1399)
## What changes are included in this PR?
An easy change, I need to access manifest metadata without `into_parts`
and re-organize.
## Are these changes tested?
An easy no-op change.
Co-authored-by: Renjie Liu <[email protected]>
---
crates/iceberg/src/spec/manifest/mod.rs | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/crates/iceberg/src/spec/manifest/mod.rs
b/crates/iceberg/src/spec/manifest/mod.rs
index 3e3cb03f..eba69dba 100644
--- a/crates/iceberg/src/spec/manifest/mod.rs
+++ b/crates/iceberg/src/spec/manifest/mod.rs
@@ -99,6 +99,11 @@ impl Manifest {
&self.entries
}
+ /// Get metadata.
+ pub fn metadata(&self) -> &ManifestMetadata {
+ &self.metadata
+ }
+
/// Consume this Manifest, returning its constituent parts
pub fn into_parts(self) -> (Vec<ManifestEntryRef>, ManifestMetadata) {
let Self { entries, metadata } = self;