File tree Expand file tree Collapse file tree 11 files changed +18
-20
lines changed Expand file tree Collapse file tree 11 files changed +18
-20
lines changed Original file line number Diff line number Diff line change @@ -55,9 +55,6 @@ mod plan_sink;
55
55
mod plan_sort;
56
56
mod plan_subqueries_set;
57
57
mod plan_table_recluster;
58
- mod plan_user_alter;
59
- mod plan_user_create;
60
- mod plan_user_drop;
61
58
mod plan_user_stage_create;
62
59
mod plan_user_stage_describe;
63
60
mod plan_user_stage_drop;
@@ -152,9 +149,6 @@ pub use plan_sink::SINK_SCHEMA;
152
149
pub use plan_sort:: SortPlan ;
153
150
pub use plan_subqueries_set:: SubQueriesSetPlan ;
154
151
pub use plan_table_recluster:: ReclusterTablePlan ;
155
- pub use plan_user_alter:: AlterUserPlan ;
156
- pub use plan_user_create:: CreateUserPlan ;
157
- pub use plan_user_drop:: DropUserPlan ;
158
152
pub use plan_user_stage_create:: CreateUserStagePlan ;
159
153
pub use plan_user_stage_describe:: DescribeUserStagePlan ;
160
154
pub use plan_user_stage_drop:: DropUserStagePlan ;
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 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 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 13
13
// limitations under the License.
14
14
15
15
mod alter_table_cluster_key;
16
+ mod alter_user;
16
17
mod call;
17
18
mod create_database;
18
19
mod create_role;
20
+ mod create_user;
19
21
mod describe_table;
20
22
mod drop_database;
21
23
mod drop_role;
22
24
mod drop_table;
23
25
mod drop_table_cluster_key;
26
+ mod drop_user;
24
27
mod exists_table;
25
28
mod grant_privilege;
26
29
mod grant_role;
@@ -40,14 +43,17 @@ mod undrop_table;
40
43
mod use_database;
41
44
42
45
pub use alter_table_cluster_key:: AlterTableClusterKeyPlan ;
46
+ pub use alter_user:: AlterUserPlan ;
43
47
pub use call:: CallPlan ;
44
48
pub use create_database:: CreateDatabasePlan ;
45
49
pub use create_role:: CreateRolePlan ;
50
+ pub use create_user:: CreateUserPlan ;
46
51
pub use describe_table:: DescribeTablePlan ;
47
52
pub use drop_database:: DropDatabasePlan ;
48
53
pub use drop_role:: DropRolePlan ;
49
54
pub use drop_table:: DropTablePlan ;
50
55
pub use drop_table_cluster_key:: DropTableClusterKeyPlan ;
56
+ pub use drop_user:: DropUserPlan ;
51
57
pub use exists_table:: ExistsTablePlan ;
52
58
pub use grant_privilege:: GrantPrivilegePlan ;
53
59
pub use grant_role:: GrantRolePlan ;
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 :: AlterUserPlan ;
18
+ use common_planner :: plans :: AlterUserPlan ;
19
19
use common_users:: UserApiProvider ;
20
20
21
21
use crate :: interpreters:: Interpreter ;
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:: CreateUserPlan ;
19
18
use common_meta_types:: UserGrantSet ;
20
19
use common_meta_types:: UserInfo ;
21
20
use common_meta_types:: UserQuota ;
21
+ use common_planner:: plans:: CreateUserPlan ;
22
22
use common_users:: UserApiProvider ;
23
23
24
24
use crate :: interpreters:: Interpreter ;
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 :: DropUserPlan ;
18
+ use common_planner :: plans :: DropUserPlan ;
19
19
use common_users:: UserApiProvider ;
20
20
21
21
use crate :: interpreters:: Interpreter ;
Original file line number Diff line number Diff line change @@ -19,12 +19,12 @@ use common_ast::ast::CreateUserStmt;
19
19
use common_ast:: ast:: GrantStmt ;
20
20
use common_ast:: ast:: RevokeStmt ;
21
21
use common_exception:: Result ;
22
- use common_legacy_planners:: AlterUserPlan ;
23
- use common_legacy_planners:: CreateUserPlan ;
24
22
use common_meta_types:: AuthInfo ;
25
23
use common_meta_types:: GrantObject ;
26
24
use common_meta_types:: UserOption ;
27
25
use common_meta_types:: UserPrivilegeSet ;
26
+ use common_planner:: plans:: AlterUserPlan ;
27
+ use common_planner:: plans:: CreateUserPlan ;
28
28
use common_planner:: plans:: GrantPrivilegePlan ;
29
29
use common_planner:: plans:: GrantRolePlan ;
30
30
use common_planner:: plans:: RevokePrivilegePlan ;
Original file line number Diff line number Diff line change @@ -27,13 +27,13 @@ use common_datavalues::DataTypeImpl;
27
27
use common_exception:: Result ;
28
28
use common_legacy_planners:: AlterUserUDFPlan ;
29
29
use common_legacy_planners:: CreateUserUDFPlan ;
30
- use common_legacy_planners:: DropUserPlan ;
31
30
use common_legacy_planners:: DropUserStagePlan ;
32
31
use common_legacy_planners:: DropUserUDFPlan ;
33
32
use common_meta_types:: UserDefinedFunction ;
34
33
use common_planner:: plans:: CallPlan ;
35
34
use common_planner:: plans:: CreateRolePlan ;
36
35
use common_planner:: plans:: DropRolePlan ;
36
+ use common_planner:: plans:: DropUserPlan ;
37
37
use common_planner:: plans:: ShowGrantsPlan ;
38
38
use common_planner:: plans:: UseDatabasePlan ;
39
39
use common_planner:: MetadataRef ;
You can’t perform that action at this time.
0 commit comments