Skip to content

Commit

Permalink
feat: Add "CREATE DYNAMIC TABLE" to schema_grant (#2144)
Browse files Browse the repository at this point in the history
* feat: Add "CREATE DYNAMIC TABLE" to schema_grant

* feat: Add CREATE DYNAMIC TABLE to privileges
  • Loading branch information
kenkoooo authored Nov 9, 2023
1 parent 01a774c commit 6f026f6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/resources/privileges.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const (
privilegeCreateDatabase Privilege = "CREATE DATABASE"
privilegeCreateDatabaseRole Privilege = "CREATE DATABASE ROLE"
privilegeCreateDataExchangeListing Privilege = "CREATE DATA EXCHANGE LISTING"
privilegeCreateDynamicTable Privilege = "CREATE DYNAMIC TABLE"
privilegeCreateExternalTable Privilege = "CREATE EXTERNAL TABLE"
privilegeCreateFailoverGroup Privilege = "CREATE FAILOVER GROUP"
privilegeCreateFileFormat Privilege = "CREATE FILE FORMAT"
Expand Down
1 change: 1 addition & 0 deletions pkg/resources/schema_grant.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (

var validSchemaPrivileges = NewPrivilegeSet(
privilegeAddSearchOptimization,
privilegeCreateDynamicTable,
privilegeCreateExternalTable,
privilegeCreateFileFormat,
privilegeCreateFunction,
Expand Down
1 change: 1 addition & 0 deletions pkg/sdk/privileges.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ const (
*/
SchemaPrivilegeAddSearchOptimization SchemaPrivilege = "ADD SEARCH OPTIMIZATION"
SchemaPrivilegeCreateAlert SchemaPrivilege = "CREATE ALERT"
SchemaPrivilegeCreateDynamicTable SchemaPrivilege = "CREATE DYNAMIC TABLE"
SchemaPrivilegeCreateExternalTable SchemaPrivilege = "CREATE EXTERNAL TABLE"
SchemaPrivilegeCreateFileFormat SchemaPrivilege = "CREATE FILE FORMAT"
SchemaPrivilegeCreateFunction SchemaPrivilege = "CREATE FUNCTION"
Expand Down

0 comments on commit 6f026f6

Please sign in to comment.