This is an automated email from the ASF dual-hosted git repository.

fokko 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 1725a3b3 feat: Public accessors for `last_column_id` and 
`last_partition_id` (#1438)
1725a3b3 is described below

commit 1725a3b3b5103f63be32b6159aa1f97806023021
Author: Christian <[email protected]>
AuthorDate: Mon Jun 16 16:11:33 2025 +0200

    feat: Public accessors for `last_column_id` and `last_partition_id` (#1438)
    
    We are currently missing public accessors for `last_column_id` and
    `last_partition_id` as part of `TableMetadata`.
    
    ---------
    
    Co-authored-by: Fokko Driesprong <[email protected]>
---
 crates/iceberg/src/spec/table_metadata.rs | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/crates/iceberg/src/spec/table_metadata.rs 
b/crates/iceberg/src/spec/table_metadata.rs
index fcd51092..c3156e56 100644
--- a/crates/iceberg/src/spec/table_metadata.rs
+++ b/crates/iceberg/src/spec/table_metadata.rs
@@ -227,6 +227,18 @@ impl TableMetadata {
         }
     }
 
+    /// Returns the last column id.
+    #[inline]
+    pub fn last_column_id(&self) -> i32 {
+        self.last_column_id
+    }
+
+    /// Returns the last partition_id
+    #[inline]
+    pub fn last_partition_id(&self) -> i32 {
+        self.last_partition_id
+    }
+
     /// Returns last updated time.
     #[inline]
     pub fn last_updated_timestamp(&self) -> Result<DateTime<Utc>> {

Reply via email to