Skip to content

Commit 5bdf015

Browse files
committed
Move DropDatabasePlan
Signed-off-by: Xuanwo <github@xuanwo.io>
1 parent 013d2a5 commit 5bdf015

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
@@ -15,7 +15,6 @@
1515
mod plan_aggregator_final;
1616
mod plan_aggregator_partial;
1717
mod plan_broadcast;
18-
mod plan_database_drop;
1918
mod plan_database_rename;
2019
mod plan_database_show_create;
2120
mod plan_database_undrop;
@@ -108,7 +107,6 @@ mod plan_window_func;
108107
pub use plan_aggregator_final::AggregatorFinalPlan;
109108
pub use plan_aggregator_partial::AggregatorPartialPlan;
110109
pub use plan_broadcast::BroadcastPlan;
111-
pub use plan_database_drop::DropDatabasePlan;
112110
pub use plan_database_rename::RenameDatabaseEntity;
113111
pub use plan_database_rename::RenameDatabasePlan;
114112
pub use plan_database_show_create::ShowCreateDatabasePlan;

src/query/legacy-planners/src/plan_database_drop.rs renamed to src/query/planner/src/plans/drop_database.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
@@ -17,3 +17,6 @@ pub use call::CallPlan;
1717

1818
mod create_database;
1919
pub use create_database::CreateDatabasePlan;
20+
21+
mod drop_database;
22+
pub use drop_database::DropDatabasePlan;

src/query/service/src/interpreters/interpreter_database_drop.rs

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

1717
use common_exception::Result;
18-
use common_legacy_planners::DropDatabasePlan;
18+
use common_planner::plans::DropDatabasePlan;
1919

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

src/query/service/src/sql/planner/binder/ddl/database.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ use common_datavalues::DataSchemaRefExt;
3030
use common_datavalues::ToDataType;
3131
use common_datavalues::Vu8;
3232
use common_exception::Result;
33-
use common_legacy_planners::DropDatabasePlan;
3433
use common_legacy_planners::RenameDatabaseEntity;
3534
use common_legacy_planners::RenameDatabasePlan;
3635
use common_legacy_planners::ShowCreateDatabasePlan;
3736
use common_legacy_planners::UndropDatabasePlan;
3837
use common_meta_app::schema::DatabaseMeta;
3938
use common_meta_app::share::ShareNameIdent;
4039
use common_planner::plans::CreateDatabasePlan;
40+
use common_planner::plans::DropDatabasePlan;
4141

4242
use crate::sql::binder::Binder;
4343
use crate::sql::planner::semantic::normalize_identifier;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ use common_legacy_planners::CreateUserUDFPlan;
5555
use common_legacy_planners::CreateViewPlan;
5656
use common_legacy_planners::DeletePlan;
5757
use common_legacy_planners::DescribeTablePlan;
58-
use common_legacy_planners::DropDatabasePlan;
5958
use common_legacy_planners::DropRolePlan;
6059
use common_legacy_planners::DropTableClusterKeyPlan;
6160
use common_legacy_planners::DropTablePlan;
@@ -85,6 +84,7 @@ use common_legacy_planners::UndropTablePlan;
8584
use common_legacy_planners::UseDatabasePlan;
8685
use common_planner::plans::CallPlan;
8786
use common_planner::plans::CreateDatabasePlan;
87+
use common_planner::plans::DropDatabasePlan;
8888
use common_planner::MetadataRef;
8989
pub use copy_v2::CopyPlanV2;
9090
pub use copy_v2::ValidationMode;

0 commit comments

Comments
 (0)