Repository navigation
Parse Snowflake ALTER USER and ALTER SHARE; fix SHOW GRANTS and GRANT trees - #76
Merged
Merged
Conversation
- ALTER USER gets typed trees for every documented action: credential ADD, MODIFY, REMOVE and ROTATE (key pairs, programmatic access tokens and PAT, workload identities), MFA methods, delegated authorizations, policies with FORCE, tags, properties and UNSET. The name may be left out for the current user, as Snowflake reads it. - ALTER SHARE parses ADD and REMOVE ACCOUNTS (SHARE_RESTRICTIONS on ADD only), SET with ACCOUNTS lists, SET TAG and UNSET, instead of falling back to an opaque command. - SHOW GRANTS accepts what Snowflake parses: a grantee kind with no name at the end, ROLE <instance>!<role>, APPLICATION ROLE .<role>, OF <name> and ON <name>; IN APPLICATION PACKAGE takes an unquoted name and ends the statement. - GRANT and REVOKE: CALLER and INHERITED CALLER qualify every privilege in the list, a SERVICE ROLE keeps each part's quoting, and a quoted class name keeps its quotes and case.
- CREATE DYNAMIC TABLE ... CLONE takes WAREHOUSE as a string as well as a name, as Snowflake parses it. - SHOW DATABASES and SHOW SHARES IN REPLICATION GROUP may leave the group name out at the end of the statement, as Snowflake parses them.
Contributor
Author
|
D94 gate for 8085c5b (merge of main bb3090a):
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Security_admin parser gaps from the D133 slice and the auditor's round-4 withholds.
<instance>!<role>, APPLICATION ROLE.<role>, OF/ON<name>; IN APPLICATION PACKAGE takes an unquoted name and ends the statement (LIMIT after it is a recorded 1003).WAREHOUSE = '<string>'; SHOW DATABASES/SHARES IN REPLICATION GROUP may omit the name.