Snowflake: role tagging grammar (ALTER ROLE SET/UNSET TAG, CREATE ROLE ... WITH TAG) - #22
Open
hovaesco wants to merge 1 commit into
Open
Snowflake: role tagging grammar (ALTER ROLE SET/UNSET TAG, CREATE ROLE ... WITH TAG)#22hovaesco wants to merge 1 commit into
hovaesco wants to merge 1 commit into
Conversation
…G, CREATE ROLE ... WITH TAG
Route ALTER ROLE <name> { SET | UNSET } TAG through parse_alter_object_set_tags
(mirroring the ALTER SCHEMA maybe_parse form) so the tag form requires a name and
non-tag forms keep falling through. Add if_exists to Statement::SetTags (also
enables ALTER DATABASE|SCHEMA|ROLE IF EXISTS ... SET TAG). Add a trailing-only
WITH TAG (...) clause to CREATE ROLE via a new with_tags field.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Adds Snowflake grammar for role tagging (LAV-1596):
ALTER ROLE [IF EXISTS] <name> { SET TAG <t> = '<v>' [, …] | UNSET TAG <t> [, …] }routed through the sharedparse_alter_object_set_tags(mirrors theALTER SCHEMAmaybe_parse form); non-tagALTER ROLEforms keep falling through.if_existsadded toStatement::SetTags(also enablesALTER DATABASE|SCHEMA|ROLE IF EXISTS … SET TAG).CREATE [OR REPLACE] ROLE [IF NOT EXISTS] <name> WITH TAG (<t> = '<v>' [, …])via a new trailing-onlywith_tagsfield onCreateRole.🤖 Generated with Claude Code