Skip to content

Commit 0f89f6b

Browse files
committed
Move KillPlan
Signed-off-by: Xuanwo <github@xuanwo.io>
1 parent 48a468f commit 0f89f6b

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

src/query/legacy-planners/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ mod plan_expression_visitor;
3333
mod plan_filter;
3434
mod plan_having;
3535
mod plan_insert_into;
36-
mod plan_kill;
3736
mod plan_limit;
3837
mod plan_limit_by;
3938
mod plan_list;
@@ -152,7 +151,6 @@ pub use plan_having::HavingPlan;
152151
pub use plan_insert_into::InsertInputSource;
153152
pub use plan_insert_into::InsertPlan;
154153
pub use plan_insert_into::InsertValueBlock;
155-
pub use plan_kill::KillPlan;
156154
pub use plan_limit::LimitPlan;
157155
pub use plan_limit_by::LimitByPlan;
158156
pub use plan_list::ListPlan;

src/query/legacy-planners/src/plan_kill.rs renamed to src/query/planner/src/plans/kill.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Datafuse Labs.
1+
// Copyright 2022 Datafuse Labs.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

src/query/planner/src/plans/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ pub use create_database::CreateDatabasePlan;
2121
mod drop_database;
2222
pub use drop_database::DropDatabasePlan;
2323

24+
mod kill;
25+
pub use kill::KillPlan;
26+
2427
mod rename_database;
2528
pub use rename_database::RenameDatabaseEntity;
2629
pub use rename_database::RenameDatabasePlan;

src/query/service/src/interpreters/interpreter_kill.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use std::sync::Arc;
1616

1717
use common_exception::ErrorCode;
1818
use common_exception::Result;
19-
use common_legacy_planners::KillPlan;
19+
use common_planner::plans::KillPlan;
2020

2121
use crate::interpreters::Interpreter;
2222
use crate::pipelines::PipelineBuildResult;

src/query/service/src/sql/planner/binder/kill.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
use common_ast::ast::KillTarget;
1616
use common_exception::Result;
17-
use common_legacy_planners::KillPlan;
17+
use common_planner::plans::KillPlan;
1818

1919
use crate::sql::planner::binder::BindContext;
2020
use crate::sql::planner::binder::Binder;

src/query/service/src/sql/planner/plans/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ use common_legacy_planners::DropViewPlan;
6565
use common_legacy_planners::ExistsTablePlan;
6666
use common_legacy_planners::GrantPrivilegePlan;
6767
use common_legacy_planners::GrantRolePlan;
68-
use common_legacy_planners::KillPlan;
6968
use common_legacy_planners::ListPlan;
7069
use common_legacy_planners::OptimizeTablePlan;
7170
use common_legacy_planners::ReclusterTablePlan;
@@ -82,6 +81,7 @@ use common_legacy_planners::UseDatabasePlan;
8281
use common_planner::plans::CallPlan;
8382
use common_planner::plans::CreateDatabasePlan;
8483
use common_planner::plans::DropDatabasePlan;
84+
use common_planner::plans::KillPlan;
8585
use common_planner::plans::RenameDatabasePlan;
8686
use common_planner::plans::ShowCreateDatabasePlan;
8787
use common_planner::plans::UndropDatabasePlan;

0 commit comments

Comments
 (0)