diff --git a/src/table/src/dist_table.rs b/src/table/src/dist_table.rs index e084ede96b4a..da3de2893333 100644 --- a/src/table/src/dist_table.rs +++ b/src/table/src/dist_table.rs @@ -21,8 +21,7 @@ use store_api::storage::ScanRequest; use crate::error::UnsupportedSnafu; use crate::metadata::{FilterPushDownType, TableInfoRef}; -use crate::table::Table; -use crate::TableRef; +use crate::{Table, TableRef}; #[derive(Clone)] pub struct DistTable; @@ -30,8 +29,8 @@ pub struct DistTable; impl DistTable { pub fn table(table_info: TableInfoRef) -> TableRef { let data_source = Arc::new(DummyDataSource); - let thin_table = Table::new(table_info, FilterPushDownType::Inexact, data_source); - Arc::new(thin_table) + let table = Table::new(table_info, FilterPushDownType::Inexact, data_source); + Arc::new(table) } } diff --git a/src/table/src/table/numbers.rs b/src/table/src/table/numbers.rs index 9c830b5eb4c3..b3a1cc0ab097 100644 --- a/src/table/src/table/numbers.rs +++ b/src/table/src/table/numbers.rs @@ -32,8 +32,7 @@ use store_api::storage::ScanRequest; use crate::metadata::{ FilterPushDownType, TableId, TableInfoBuilder, TableInfoRef, TableMetaBuilder, TableType, }; -use crate::table::Table; -use crate::TableRef; +use crate::{Table, TableRef}; const NUMBER_COLUMN: &str = "number"; @@ -50,12 +49,12 @@ impl NumbersTable { pub fn table_with_name(table_id: TableId, name: String) -> TableRef { let data_source = Arc::new(NumbersDataSource::new(Self::schema())); - let thin_table = Table::new( + let table = Table::new( Self::table_info(table_id, name, "test_engine".to_string()), FilterPushDownType::Unsupported, data_source, ); - Arc::new(thin_table) + Arc::new(table) } pub fn schema() -> SchemaRef { diff --git a/src/table/src/test_util/empty_table.rs b/src/table/src/test_util/empty_table.rs index ef077510ee2b..000614b469f7 100644 --- a/src/table/src/test_util/empty_table.rs +++ b/src/table/src/test_util/empty_table.rs @@ -21,8 +21,7 @@ use store_api::data_source::DataSource; use store_api::storage::ScanRequest; use crate::metadata::{FilterPushDownType, TableInfo}; -use crate::table::Table; -use crate::TableRef; +use crate::{Table, TableRef}; pub struct EmptyTable; @@ -31,12 +30,12 @@ impl EmptyTable { let data_source = Arc::new(EmptyDataSource { schema: info.meta.schema.clone(), }); - let thin_table = Table::new( + let table = Table::new( Arc::new(info.clone()), FilterPushDownType::Unsupported, data_source, ); - Arc::new(thin_table) + Arc::new(table) } } diff --git a/src/table/src/test_util/memtable.rs b/src/table/src/test_util/memtable.rs index 4e0bac416a74..22562fa1a719 100644 --- a/src/table/src/test_util/memtable.rs +++ b/src/table/src/test_util/memtable.rs @@ -33,8 +33,7 @@ use crate::error::{SchemaConversionSnafu, TableProjectionSnafu, TablesRecordBatc use crate::metadata::{ FilterPushDownType, TableId, TableInfoBuilder, TableMetaBuilder, TableType, TableVersion, }; -use crate::table::Table; -use crate::TableRef; +use crate::{Table, TableRef}; pub struct MemTable; @@ -95,8 +94,8 @@ impl MemTable { ); let data_source = Arc::new(MemtableDataSource { recordbatch }); - let thin_table = Table::new(info, FilterPushDownType::Unsupported, data_source); - Arc::new(thin_table) + let table = Table::new(info, FilterPushDownType::Unsupported, data_source); + Arc::new(table) } /// Creates a 1 column 100 rows table, with table name "numbers", column name "uint32s" and