Skip to content

Commit

Permalink
Revert crates/iceberg/src/table.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeiPatiakin committed Dec 10, 2024
1 parent bc61289 commit 6e87893
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions crates/iceberg/src/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,14 +265,7 @@ impl StaticTable {
let metadata_file = file_io.new_input(metadata_file_path)?;
let metadata_file_content = metadata_file.read().await?;
let table_metadata = serde_json::from_slice::<TableMetadata>(&metadata_file_content)?;
let table = Table::builder()
.metadata(table_metadata)
.metadata_location(metadata_file_path)
.identifier(table_ident)
.file_io(file_io.clone())
.readonly(true)
.build()?;
Ok(Self(table))
Self::from_metadata(table_metadata, table_ident, file_io).await
}

/// Create a TableScanBuilder for the static table.
Expand Down

0 comments on commit 6e87893

Please sign in to comment.