From 6e87893e733379558df597aa7d66f026549e3b0c Mon Sep 17 00:00:00 2001 From: Sergei Patiakin Date: Tue, 10 Dec 2024 12:37:37 +0100 Subject: [PATCH] Revert crates/iceberg/src/table.rs --- crates/iceberg/src/table.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/crates/iceberg/src/table.rs b/crates/iceberg/src/table.rs index a022398c3..406f9dd65 100644 --- a/crates/iceberg/src/table.rs +++ b/crates/iceberg/src/table.rs @@ -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::(&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.