Skip to content

Commit

Permalink
feat(table): Add debug and clone trait to static table struct (#510)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndrluis authored Jul 31, 2024
1 parent 001dfa7 commit bd9eea1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/iceberg/src/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ impl Table {
/// .snapshot_id();
/// # }
/// ```
#[derive(Debug, Clone)]
pub struct StaticTable(Table);

impl StaticTable {
Expand Down Expand Up @@ -144,9 +145,9 @@ impl StaticTable {
self.0.metadata_ref()
}

/// Consumes the `StaticTable` and return it as a `Table`
/// Please use this method carefully as the Table it returns remains detached from a catalog
/// and can't be used to perform modifications on the table.
/// Consumes the `StaticTable` and return it as a `Table`
/// Please use this method carefully as the Table it returns remains detached from a catalog
/// and can't be used to perform modifications on the table.
pub fn into_table(self) -> Table {
self.0
}
Expand Down

0 comments on commit bd9eea1

Please sign in to comment.