File tree Expand file tree Collapse file tree 9 files changed +10
-7
lines changed Expand file tree Collapse file tree 9 files changed +10
-7
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_create;
19
18
mod plan_database_drop;
20
19
mod plan_database_rename;
21
20
mod plan_database_show_create;
@@ -109,7 +108,6 @@ mod plan_window_func;
109
108
pub use plan_aggregator_final:: AggregatorFinalPlan ;
110
109
pub use plan_aggregator_partial:: AggregatorPartialPlan ;
111
110
pub use plan_broadcast:: BroadcastPlan ;
112
- pub use plan_database_create:: CreateDatabasePlan ;
113
111
pub use plan_database_drop:: DropDatabasePlan ;
114
112
pub use plan_database_rename:: RenameDatabaseEntity ;
115
113
pub use plan_database_rename:: RenameDatabasePlan ;
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ edition = "2021"
9
9
[dependencies ]
10
10
common-catalog = { path = " ../catalog" }
11
11
common-datavalues = { path = " ../datavalues" }
12
+ common-meta-app = {path = " ../../meta/app" }
12
13
13
14
parking_lot = " 0.12"
14
15
serde = { version = " 1" , features = [" derive" ]}
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.
Original file line number Diff line number Diff line change 14
14
15
15
mod call;
16
16
pub use call:: CallPlan ;
17
+
18
+ mod create_database;
19
+ pub use create_database:: CreateDatabasePlan ;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ use std::sync::Arc;
16
16
17
17
use common_exception:: ErrorCode ;
18
18
use common_exception:: Result ;
19
- use common_legacy_planners :: CreateDatabasePlan ;
19
+ use common_planner :: plans :: CreateDatabasePlan ;
20
20
use common_users:: UserApiProvider ;
21
21
22
22
use crate :: interpreters:: Interpreter ;
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:: CreateDatabasePlan ;
34
33
use common_legacy_planners:: DropDatabasePlan ;
35
34
use common_legacy_planners:: RenameDatabaseEntity ;
36
35
use common_legacy_planners:: RenameDatabasePlan ;
37
36
use common_legacy_planners:: ShowCreateDatabasePlan ;
38
37
use common_legacy_planners:: UndropDatabasePlan ;
39
38
use common_meta_app:: schema:: DatabaseMeta ;
40
39
use common_meta_app:: share:: ShareNameIdent ;
40
+ use common_planner:: plans:: CreateDatabasePlan ;
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 @@ -48,7 +48,6 @@ use common_legacy_planners::AlterTableClusterKeyPlan;
48
48
use common_legacy_planners:: AlterUserPlan ;
49
49
use common_legacy_planners:: AlterUserUDFPlan ;
50
50
use common_legacy_planners:: AlterViewPlan ;
51
- use common_legacy_planners:: CreateDatabasePlan ;
52
51
use common_legacy_planners:: CreateRolePlan ;
53
52
use common_legacy_planners:: CreateUserPlan ;
54
53
use common_legacy_planners:: CreateUserStagePlan ;
@@ -85,6 +84,7 @@ use common_legacy_planners::UndropDatabasePlan;
85
84
use common_legacy_planners:: UndropTablePlan ;
86
85
use common_legacy_planners:: UseDatabasePlan ;
87
86
use common_planner:: plans:: CallPlan ;
87
+ use common_planner:: plans:: CreateDatabasePlan ;
88
88
use common_planner:: MetadataRef ;
89
89
pub use copy_v2:: CopyPlanV2 ;
90
90
pub use copy_v2:: ValidationMode ;
Original file line number Diff line number Diff line change @@ -20,13 +20,13 @@ use common_datablocks::assert_blocks_sorted_eq_with_name;
20
20
use common_datablocks:: DataBlock ;
21
21
use common_datavalues:: prelude:: * ;
22
22
use common_exception:: Result ;
23
- use common_legacy_planners:: CreateDatabasePlan ;
24
23
use common_legacy_planners:: Expression ;
25
24
use common_legacy_planners:: Extras ;
26
25
use common_meta_app:: schema:: DatabaseMeta ;
27
26
use common_meta_app:: schema:: TableMeta ;
28
27
use common_pipeline_core:: processors:: port:: OutputPort ;
29
28
use common_pipeline_core:: SourcePipeBuilder ;
29
+ use common_planner:: plans:: CreateDatabasePlan ;
30
30
use common_storage:: StorageFsConfig ;
31
31
use common_storage:: StorageParams ;
32
32
use common_streams:: SendableDataBlockStream ;
You can’t perform that action at this time.
0 commit comments