Skip to content

Commit

Permalink
Rename 'metadata_table' to 'inspect'
Browse files Browse the repository at this point in the history
  • Loading branch information
rshkv committed Jan 7, 2025
1 parent 25e8909 commit de9a8d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
8 changes: 1 addition & 7 deletions crates/iceberg/src/inspect/manifests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,7 @@ mod tests {
let mut fixture = TableTestFixture::new();
fixture.setup_manifest_files().await;

let record_batch = fixture
.table
.metadata_table()
.manifests()
.scan()
.await
.unwrap();
let record_batch = fixture.table.inspect().manifests().scan().await.unwrap();

check_record_batch(
record_batch,
Expand Down
2 changes: 1 addition & 1 deletion crates/iceberg/src/inspect/snapshots.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ mod tests {
#[test]
fn test_snapshots_table() {
let table = TableTestFixture::new().table;
let record_batch = table.metadata_table().snapshots().scan().unwrap();
let record_batch = table.inspect().snapshots().scan().unwrap();
check_record_batch(
record_batch,
expect![[r#"
Expand Down
2 changes: 1 addition & 1 deletion crates/iceberg/src/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ impl Table {

/// Creates a metadata table which provides table-like APIs for inspecting metadata.
/// See [`MetadataTable`] for more details.
pub fn metadata_table(self) -> MetadataTable {
pub fn inspect(self) -> MetadataTable {
MetadataTable::new(self)
}

Expand Down

0 comments on commit de9a8d1

Please sign in to comment.