-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
sql: allow parsing of DROP OWNED BY #55816
Conversation
410c1d5
to
90496c6
Compare
@@ -8,7 +8,6 @@ exec | |||
CREATE ROLE testuser; | |||
CREATE ROLE testuser2; | |||
CREATE TABLE t(); | |||
GRANT testuser, testuser2 TO root; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did we delete this line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed it because root
should not need to be a member of roles in order to reassign items from one to another. It was there previously because the admin privileges were not correct but @solongordon fixed it in #55273. I removed the corresponding lines in the REASSIGN OWNED BY
logic test previously but just noticed that the telemetry test still has this extraneous line.
90496c6
to
1e0f6fe
Compare
1e0f6fe
to
d263683
Compare
a29b291
to
e3f80f1
Compare
Add parsing and telemetry support for DROP OWNED BY command. Includes small refactors of the related REASSIGN OWNED BY command such as appending "_by" to some instances of "reassign_owned" for readability. Plan to follow up with implementation of DROP OWNED BY for feature parity with PostgresQL, which will resolve the issue linked. Release note: None
e3f80f1
to
740f73d
Compare
bors r=otan |
This PR was included in a batch that successfully built, but then failed to merge into master (it was a non-fast-forward update). It will be automatically retried. |
Build succeeded: |
Part 1 of addressing #55381.
Add parsing and telemetry support for DROP OWNED BY command.
Includes small refactors of the related REASSIGN OWNED BY
command such as appending "_by" to some instances of
"reassign_owned" for readability.
Plan to follow up with implementation of DROP OWNED BY for
feature parity with PostgresQL, which will resolve the issue
linked.
Note that this command is also making use of
role_spec_list
which as noted in #54696 does not properly parse
CURRENT_USER
orSESSION_USER
and uses strings forroles/usernames rather than expressions. This issue is out of
scope for this PR and will be resolved separately.
Release note: None