Skip to content

Conversation

@sopel39
Copy link
Contributor

@sopel39 sopel39 commented Oct 5, 2018

Supersedes #11475

FYI: @martint @arhimondr

| CALL qualifiedName '(' (callArgument (',' callArgument)*)? ')' #call
| CREATE ROLE name=identifier
(WITH ADMIN grantor)?
(IN catalog=identifier)? #createRole
Copy link
Member

Choose a reason for hiding this comment

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

I thought we agreed that the IN extension should not be supported. ROLE manipulations should be allowed only within the session catalog.

Copy link
Contributor

Choose a reason for hiding this comment

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

I thought we agreed to merge this as it is and fix it later. Would you accept a fix on top of this? Instead of doing rebase one more time?

Copy link
Member

Choose a reason for hiding this comment

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

I missed that part

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought we agreed to merge this as it is and fix it later. Would you accept a fix on top of this? Instead of doing rebase one more time?

That's what I also think was decided.

@ilfrin @martint you have more context.

Copy link
Contributor

Choose a reason for hiding this comment

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

We decided to leave that functionality out since it's not clear exactly how it should work and there's an easy workaround.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good. Would you accept a fix on top of this? Instead of doing rebase one more time?

@sopel39 sopel39 force-pushed the epic/support-role-management/pr5 branch from 75ecb25 to 8ba37e2 Compare October 8, 2018 15:49
kokosing and others added 5 commits October 8, 2018 22:21
This way table privileges are enumerated lazily.
Currently Presto shows that the owner of a table
has ALL privileges, even after some privileges are revoked.
This commit fixes this issue by listing only privileges
actually present in the metastore.
Presto currently lists only privilges of the
tables owned by the current user, even after the
admin role is set. This commit fixes this and lists all
privileges for admins.
When tables of the same name exist across different schemas, Presto lists privileges
of the table from all schemas instead of the single schema mentioned in the
SHOW GRANTS query. This commit fixes the issue.
@sopel39 sopel39 force-pushed the epic/support-role-management/pr5 branch from 8ba37e2 to 4c93a9b Compare October 8, 2018 20:25
@sopel39
Copy link
Contributor Author

sopel39 commented Oct 8, 2018

It's green, so maybe merge it?

@anusudarsan anusudarsan force-pushed the epic/support-role-management/pr5 branch from 918eb71 to 26f9a22 Compare October 26, 2018 21:46
The roles set during a CLI session were not being set and thus SHOW CURRENT ROLES returned incorrect results.
@anusudarsan anusudarsan force-pushed the epic/support-role-management/pr5 branch from 26f9a22 to b431446 Compare October 29, 2018 14:32
@arhimondr
Copy link
Member

@kokosing

Remove 'IN catalog' syntax from role management commands

Thanks for doing this

@sopel39
Copy link
Contributor Author

sopel39 commented Nov 6, 2018

@arhimondr is it ok to land with it?

@arhimondr
Copy link
Member

@sopel39 I think it should be. @martint ?

@findepi
Copy link
Contributor

findepi commented Jan 25, 2019

@kokosing said there was some unnoticed problem during rebase, when the source branch of this PR was created.
Let me close this PR as it should not be merged in its current shape.

@findepi findepi closed this Jan 25, 2019
@sopel39 sopel39 mentioned this pull request Jan 29, 2019
@findepi findepi deleted the epic/support-role-management/pr5 branch January 29, 2019 12:52
@findepi findepi restored the epic/support-role-management/pr5 branch January 29, 2019 12:54
@findepi findepi deleted the epic/support-role-management/pr5 branch January 29, 2019 12:58
@tooptoop4
Copy link

gentle ping

@highker
Copy link

highker commented Feb 23, 2019

I will take a look; @arhimondr do you wanna chime in?

@highker highker self-assigned this Feb 23, 2019
@arhimondr
Copy link
Member

arhimondr commented Feb 23, 2019 via email

@highker highker assigned arhimondr and unassigned highker Feb 23, 2019
@arhimondr arhimondr mentioned this pull request Feb 25, 2019
@arhimondr
Copy link
Member

@tooptoop4 #12383

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants