refactor(table): cleanup dist table (#2255)

Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>
This commit is contained in:
Zhenchi
2023-08-25 14:37:39 +08:00
committed by GitHub
parent 6bf260a05c
commit 9d87c8b6de
8 changed files with 31 additions and 348 deletions

View File

@@ -30,12 +30,10 @@ mod test {
use common_query::Output;
use common_recordbatch::RecordBatches;
use frontend::instance::Instance;
use frontend::table::DistTable;
use query::parser::QueryLanguageParser;
use servers::query_handler::grpc::GrpcQueryHandler;
use session::context::QueryContext;
use store_api::storage::RegionNumber;
use table::Table;
use tests::{has_parquet_file, test_region_dir};
use crate::tests;
@@ -332,7 +330,6 @@ CREATE TABLE {table_name} (
.await
.unwrap()
.unwrap();
let table = table.as_any().downcast_ref::<DistTable>().unwrap();
let table_id = table.table_info().table_id();
let table_route_value = instance
@@ -627,7 +624,6 @@ CREATE TABLE {table_name} (
.await
.unwrap()
.unwrap();
let table = table.as_any().downcast_ref::<DistTable>().unwrap();
let table_id = table.table_info().ident.table_id;
let table_route_value = instance
.table_metadata_manager()