@@ -50,7 +50,6 @@ use parking_lot::RwLock;
50
50
51
51
use crate :: interpreters:: common:: check_deduplicate_label;
52
52
use crate :: interpreters:: common:: dml_build_update_stream_req;
53
- use crate :: interpreters:: interpreter_copy_into_table:: CopyIntoTableInterpreter ;
54
53
use crate :: interpreters:: HookOperator ;
55
54
use crate :: interpreters:: Interpreter ;
56
55
use crate :: interpreters:: InterpreterPtr ;
@@ -375,7 +374,7 @@ impl ReplaceInterpreter {
375
374
ctx : Arc < QueryContext > ,
376
375
source : & ' a InsertInputSource ,
377
376
schema : DataSchemaRef ,
378
- purge_info : & mut Option < ( Vec < StageFileInfo > , StageInfo ) > ,
377
+ _purge_info : & mut Option < ( Vec < StageFileInfo > , StageInfo ) > ,
379
378
) -> Result < ReplaceSourceCtx > {
380
379
match source {
381
380
InsertInputSource :: Values ( source) => self
@@ -390,27 +389,29 @@ impl ReplaceInterpreter {
390
389
InsertInputSource :: SelectPlan ( plan) => {
391
390
self . connect_query_plan_source ( ctx. clone ( ) , plan) . await
392
391
}
393
- InsertInputSource :: Stage ( plan) => match * plan. clone ( ) {
394
- // Plan::CopyIntoTable(copy_plan) => {
395
- // let interpreter =
396
- // CopyIntoTableInterpreter::try_create(ctx.clone(), *copy_plan.clone())?;
397
- // let (physical_plan, _) = interpreter.build_physical_plan(©_plan).await?;
398
-
399
- // // TODO optimization: if copy_plan.stage_table_info.files_to_copy is None, there should be a short-cut plan
400
-
401
- // *purge_info = Some((
402
- // copy_plan.stage_table_info.files_to_copy.unwrap_or_default(),
403
- // copy_plan.stage_table_info.stage_info.clone(),
404
- // ));
405
- // Ok(ReplaceSourceCtx {
406
- // root: Box::new(physical_plan),
407
- // select_ctx: None,
408
- // update_stream_meta: vec![],
409
- // bind_context: None,
410
- // })
411
- // }
412
- _ => unreachable ! ( "plan in InsertInputSource::Stag must be CopyIntoTable" ) ,
413
- } ,
392
+ _ => todo ! ( ) ,
393
+ // InsertInputSource::Stage(plan) => match *plan.clone() {
394
+ // Plan::CopyIntoTable(_copy_plan) => {
395
+ // // let interpreter =
396
+ // // CopyIntoTableInterpreter::try_create(ctx.clone(), *copy_plan.clone())?;
397
+ // // let (physical_plan, _) = interpreter.build_physical_plan(©_plan).await?;
398
+
399
+ // // // TODO optimization: if copy_plan.stage_table_info.files_to_copy is None, there should be a short-cut plan
400
+
401
+ // // *purge_info = Some((
402
+ // // copy_plan.stage_table_info.files_to_copy.unwrap_or_default(),
403
+ // // copy_plan.stage_table_info.stage_info.clone(),
404
+ // // ));
405
+ // // Ok(ReplaceSourceCtx {
406
+ // // root: Box::new(physical_plan),
407
+ // // select_ctx: None,
408
+ // // update_stream_meta: vec![],
409
+ // // bind_context: None,
410
+ // // })
411
+ // todo!()
412
+ // }
413
+ // _ => unreachable!("plan in InsertInputSource::Stag must be CopyIntoTable"),
414
+ // },
414
415
}
415
416
}
416
417
0 commit comments