Skip to content

Commit 1725a3b

Browse files
c-thielFokko
andauthored
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]>
1 parent c3a46b0 commit 1725a3b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

crates/iceberg/src/spec/table_metadata.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,18 @@ impl TableMetadata {
227227
}
228228
}
229229

230+
/// Returns the last column id.
231+
#[inline]
232+
pub fn last_column_id(&self) -> i32 {
233+
self.last_column_id
234+
}
235+
236+
/// Returns the last partition_id
237+
#[inline]
238+
pub fn last_partition_id(&self) -> i32 {
239+
self.last_partition_id
240+
}
241+
230242
/// Returns last updated time.
231243
#[inline]
232244
pub fn last_updated_timestamp(&self) -> Result<DateTime<Utc>> {

0 commit comments

Comments
 (0)