File tree Expand file tree Collapse file tree 6 files changed +9
-9
lines changed Expand file tree Collapse file tree 6 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 15
15
mod plan_aggregator_final;
16
16
mod plan_aggregator_partial;
17
17
mod plan_broadcast;
18
- mod plan_database_rename;
19
18
mod plan_database_show_create;
20
19
mod plan_database_undrop;
21
20
mod plan_delete;
@@ -107,8 +106,6 @@ mod plan_window_func;
107
106
pub use plan_aggregator_final:: AggregatorFinalPlan ;
108
107
pub use plan_aggregator_partial:: AggregatorPartialPlan ;
109
108
pub use plan_broadcast:: BroadcastPlan ;
110
- pub use plan_database_rename:: RenameDatabaseEntity ;
111
- pub use plan_database_rename:: RenameDatabasePlan ;
112
109
pub use plan_database_show_create:: ShowCreateDatabasePlan ;
113
110
pub use plan_database_undrop:: UndropDatabasePlan ;
114
111
pub use plan_delete:: DeletePlan ;
Original file line number Diff line number Diff line change @@ -20,3 +20,7 @@ pub use create_database::CreateDatabasePlan;
20
20
21
21
mod drop_database;
22
22
pub use drop_database:: DropDatabasePlan ;
23
+
24
+ mod rename_database;
25
+ pub use rename_database:: RenameDatabaseEntity ;
26
+ pub use rename_database:: RenameDatabasePlan ;
Original file line number Diff line number Diff line change 1
- // Copyright 2021 Datafuse Labs.
1
+ // Copyright 2022 Datafuse Labs.
2
2
//
3
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
4
// you may not use this file except in compliance with the License.
11
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
-
15
14
use std:: sync:: Arc ;
16
15
17
16
use common_datavalues:: DataSchema ;
Original file line number Diff line number Diff line change 15
15
use std:: sync:: Arc ;
16
16
17
17
use common_exception:: Result ;
18
- use common_legacy_planners:: RenameDatabasePlan ;
19
18
use common_meta_app:: schema:: DatabaseNameIdent ;
20
19
use common_meta_app:: schema:: RenameDatabaseReq ;
20
+ use common_planner:: plans:: RenameDatabasePlan ;
21
21
22
22
use crate :: interpreters:: Interpreter ;
23
23
use crate :: pipelines:: PipelineBuildResult ;
Original file line number Diff line number Diff line change @@ -30,14 +30,14 @@ use common_datavalues::DataSchemaRefExt;
30
30
use common_datavalues:: ToDataType ;
31
31
use common_datavalues:: Vu8 ;
32
32
use common_exception:: Result ;
33
- use common_legacy_planners:: RenameDatabaseEntity ;
34
- use common_legacy_planners:: RenameDatabasePlan ;
35
33
use common_legacy_planners:: ShowCreateDatabasePlan ;
36
34
use common_legacy_planners:: UndropDatabasePlan ;
37
35
use common_meta_app:: schema:: DatabaseMeta ;
38
36
use common_meta_app:: share:: ShareNameIdent ;
39
37
use common_planner:: plans:: CreateDatabasePlan ;
40
38
use common_planner:: plans:: DropDatabasePlan ;
39
+ use common_planner:: plans:: RenameDatabaseEntity ;
40
+ use common_planner:: plans:: RenameDatabasePlan ;
41
41
42
42
use crate :: sql:: binder:: Binder ;
43
43
use crate :: sql:: planner:: semantic:: normalize_identifier;
Original file line number Diff line number Diff line change @@ -70,7 +70,6 @@ use common_legacy_planners::ListPlan;
70
70
use common_legacy_planners:: OptimizeTablePlan ;
71
71
use common_legacy_planners:: ReclusterTablePlan ;
72
72
use common_legacy_planners:: RemoveUserStagePlan ;
73
- use common_legacy_planners:: RenameDatabasePlan ;
74
73
use common_legacy_planners:: RenameTablePlan ;
75
74
use common_legacy_planners:: RevokePrivilegePlan ;
76
75
use common_legacy_planners:: RevokeRolePlan ;
@@ -85,6 +84,7 @@ use common_legacy_planners::UseDatabasePlan;
85
84
use common_planner:: plans:: CallPlan ;
86
85
use common_planner:: plans:: CreateDatabasePlan ;
87
86
use common_planner:: plans:: DropDatabasePlan ;
87
+ use common_planner:: plans:: RenameDatabasePlan ;
88
88
use common_planner:: MetadataRef ;
89
89
pub use copy_v2:: CopyPlanV2 ;
90
90
pub use copy_v2:: ValidationMode ;
You can’t perform that action at this time.
0 commit comments