-
Notifications
You must be signed in to change notification settings - Fork 427
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Use new identifier with arguments in function, external functi…
…on and procedure grants (#3002) <!-- Feel free to delete comments as you fill this in --> - handle unusual identifiers returned in SHOW GRANTS - handle function, external function and procedure identifiers in ownership and privilege grants properly - add tests for these objects with and without arguments - remove IsValidIdentifier from validations - it doesn't work for ids with arguments Note: base branch of this PR is `identifier-with-arguments-for-procedure-and-external-function` and should be merged soon in #2987 <!-- summary of changes --> TODO: - handle `granteeName` for shares in next PR (instead of using a fallback in `convert`), parse the ID outside the function when we know SHOW GRANT request details, so we can parse based on that. ## Test Plan <!-- detail ways in which this PR has been tested or needs to be tested --> * [x] acceptance tests * [x] integration tests * [x] unit tests ## References <!-- issues documentation links, etc --> https://docs.snowflake.com/en/sql-reference/sql/grant-privilege and other grant docs --------- Co-authored-by: Jan Cieślak <[email protected]>
- Loading branch information
1 parent
f13cc5c
commit 5053f8b
Showing
35 changed files
with
1,226 additions
and
201 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.