Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a way to grant/revoke schema privileges from hive metadata #8436

Merged
merged 1 commit into from
Jul 8, 2021
Merged

Added a way to grant/revoke schema privileges from hive metadata #8436

merged 1 commit into from
Jul 8, 2021

Conversation

gaurav8297
Copy link
Member

No description provided.

@cla-bot
Copy link

cla-bot bot commented Jun 30, 2021

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please submit the signed CLA to [email protected]. For more information, see https://github.com/trinodb/cla.

@@ -2759,6 +2759,18 @@ public void revokeRoles(ConnectorSession session, Set<String> roles, Set<TrinoPr
return accessControlMetadata.listEnabledRoles(session);
Copy link
Member

Choose a reason for hiding this comment

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

Please follow https://github.com/trinodb/trino/blob/master/DEVELOPMENT.md#format-git-commit-messages when writing commit messages.
Please avoid merge commits, we always rebase. Also FYI #8411

@kokosing kokosing requested a review from Praveen2112 July 1, 2021 08:01
@@ -2774,6 +2774,18 @@ public void revokeRoles(ConnectorSession session, Set<String> roles, Set<TrinoPr
return accessControlMetadata.listEnabledRoles(session);
Copy link
Contributor

Choose a reason for hiding this comment

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

The convention for commit messages is to use imperative mode, like "Add grant/revoke..." and to keep the headline relatively short (I know it can be difficult at times - I struggle with it myself ;) )

(And it's annoying how GitHub does not allow commenting on the commit message)

@cla-bot
Copy link

cla-bot bot commented Jul 2, 2021

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please submit the signed CLA to [email protected]. For more information, see https://github.com/trinodb/cla.

@cla-bot
Copy link

cla-bot bot commented Jul 2, 2021

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please submit the signed CLA to [email protected]. For more information, see https://github.com/trinodb/cla.

/**
* Grants the specified privilege to the specified user on the specified table
*/
default void grantTablePrivileges(ConnectorSession session, SchemaTableName tableName, Set<Privilege> privileges, HivePrincipal grantee, boolean grantOption)
{
throw new TrinoException(NOT_SUPPORTED, "This connector does not support grants");
throw new TrinoException(NOT_SUPPORTED, "This connector does not support grants on tables");
Copy link
Member

Choose a reason for hiding this comment

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

nit: I guess this can be captured in a different commit.

Copy link
Member

Choose a reason for hiding this comment

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

I think this is fine, because without this commit the change is not needed. Doing it sooner or later would be awkward to me.

@kokosing
Copy link
Member

kokosing commented Jul 8, 2021

@cla-bot check

@cla-bot cla-bot bot added the cla-signed label Jul 8, 2021
@cla-bot
Copy link

cla-bot bot commented Jul 8, 2021

The cla-bot has been summoned, and re-checked this pull request!

@kokosing
Copy link
Member

kokosing commented Jul 8, 2021

CI hit: #8432, #4568

@kokosing kokosing merged commit 8b2dabd into trinodb:master Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants