File tree 5 files changed +7
-2
lines changed
storages/fuse/src/operations
5 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -108,4 +108,6 @@ pub trait TableContext: Send + Sync {
108
108
-> Result < Arc < dyn Table > > ;
109
109
fn get_processes_info ( & self ) -> Vec < ProcessInfo > ;
110
110
fn get_runtime ( & self ) -> Result < Arc < Runtime > > ;
111
+
112
+ fn clone_inner ( & self ) -> Arc < dyn TableContext > ;
111
113
}
Original file line number Diff line number Diff line change @@ -668,7 +668,6 @@ impl FragmentCoordinator {
668
668
669
669
match & self . payload {
670
670
FragmentPayload :: PlanV2 ( plan) => {
671
- let ctx = QueryContext :: create_from ( ctx) ;
672
671
let pipeline_builder = PipelineBuilderV2 :: create ( ctx) ;
673
672
self . pipeline_build_res = Some ( pipeline_builder. finalize ( plan) ?) ;
674
673
}
Original file line number Diff line number Diff line change @@ -164,7 +164,6 @@ impl Interpreter for InsertInterpreterV2 {
164
164
_ => unreachable ! ( ) ,
165
165
} ;
166
166
167
- table1. get_table_info ( ) ;
168
167
let catalog = self . plan . catalog . clone ( ) ;
169
168
let is_distributed_plan = select_plan. is_distributed_plan ( ) ;
170
169
Original file line number Diff line number Diff line change @@ -386,6 +386,10 @@ impl TableContext for QueryContext {
386
386
fn get_runtime ( & self ) -> Result < Arc < Runtime > > {
387
387
self . shared . try_get_runtime ( )
388
388
}
389
+
390
+ fn clone_inner ( & self ) -> Arc < dyn TableContext > {
391
+ QueryContext :: create_from_shared ( self . shared . clone ( ) )
392
+ }
389
393
}
390
394
391
395
impl TrySpawn for QueryContext {
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ impl FuseTable {
78
78
plan : & ReadDataSourcePlan ,
79
79
pipeline : & mut Pipeline ,
80
80
) -> Result < ( ) > {
81
+ let ctx = ctx. clone_inner ( ) ;
81
82
let mut lazy_init_segments = Vec :: with_capacity ( plan. parts . len ( ) ) ;
82
83
83
84
for part in & plan. parts {
You can’t perform that action at this time.
0 commit comments