Skip to content

[pick][Improment]Add schema table workload_group_privileges (#38436) - #39708

Merged
yiguolei merged 1 commit into
apache:branch-2.1from
wangbo:0821_pick_auth_sys_table
Aug 21, 2024
Merged

[pick][Improment]Add schema table workload_group_privileges (#38436)#39708
yiguolei merged 1 commit into
apache:branch-2.1from
wangbo:0821_pick_auth_sys_table

Conversation

@wangbo

@wangbowangbo commented Aug 21, 2024

Copy link
Copy Markdown
Contributor

pick #38436

@doris-robot

Copy link
Copy Markdown

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@wangbo

Copy link
Copy Markdown
ContributorAuthor

run buildall

@github-actionsgithub-actionsBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

{"IS_GRANTABLE", TYPE_VARCHAR, sizeof(StringRef), true},
};

SchemaWorkloadGroupPrivilegesScanner::SchemaWorkloadGroupPrivilegesScanner()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: use '= default' to define a trivial default constructor [modernize-use-equals-default]

be/src/exec/schema_scanner/schema_workload_group_privileges.cpp:36:

- : SchemaScanner(_s_tbls_columns, TSchemaTableType::SCH_WORKLOAD_GROUPS) {}+ : SchemaScanner(_s_tbls_columns, TSchemaTableType::SCH_WORKLOAD_GROUPS) = default;

SchemaWorkloadGroupPrivilegesScanner::SchemaWorkloadGroupPrivilegesScanner()
: SchemaScanner(_s_tbls_columns, TSchemaTableType::SCH_WORKLOAD_GROUPS) {}

SchemaWorkloadGroupPrivilegesScanner::~SchemaWorkloadGroupPrivilegesScanner() {}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: use '= default' to define a trivial destructor [modernize-use-equals-default]

Suggested change
SchemaWorkloadGroupPrivilegesScanner::~SchemaWorkloadGroupPrivilegesScanner() {}
SchemaWorkloadGroupPrivilegesScanner::~SchemaWorkloadGroupPrivilegesScanner() = default;

Add schema table workload_group_privileges.
```
mysql [information_schema]>desc workload_group_privileges;
+---------------------+--------------+------+-------+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------------------+--------------+------+-------+---------+-------+
| GRANTEE | varchar(64) | Yes | false | NULL | |
| WORKLOAD_GROUP_NAME | varchar(256) | Yes | false | NULL | |
| PRIVILEGE_TYPE | varchar(64) | Yes | false | NULL | |
| IS_GRANTABLE | varchar(3) | Yes | false | NULL | |
+---------------------+--------------+------+-------+---------+-------+
4 rows in set (0.01 sec)
```
@wangbo
wangboforce-pushed the 0821_pick_auth_sys_table branch from 09932c6 to b84c1bcCompareAugust 21, 2024 11:53
@wangbo

Copy link
Copy Markdown
ContributorAuthor

run buildall

@yiguolei
yiguolei merged commit a55e109 into apache:branch-2.1Aug 21, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@wangbo@doris-robot@yiguolei