From 6f026f64e6e24638df2b9d4110362836a9071011 Mon Sep 17 00:00:00 2001 From: kenkoooo Date: Thu, 9 Nov 2023 23:15:55 +0900 Subject: [PATCH] feat: Add "CREATE DYNAMIC TABLE" to schema_grant (#2144) * feat: Add "CREATE DYNAMIC TABLE" to schema_grant * feat: Add CREATE DYNAMIC TABLE to privileges --- pkg/resources/privileges.go | 1 + pkg/resources/schema_grant.go | 1 + pkg/sdk/privileges.go | 1 + 3 files changed, 3 insertions(+) diff --git a/pkg/resources/privileges.go b/pkg/resources/privileges.go index 8a989b0a77..46adbfafe5 100644 --- a/pkg/resources/privileges.go +++ b/pkg/resources/privileges.go @@ -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" diff --git a/pkg/resources/schema_grant.go b/pkg/resources/schema_grant.go index f12960b352..4929d4d2f8 100644 --- a/pkg/resources/schema_grant.go +++ b/pkg/resources/schema_grant.go @@ -16,6 +16,7 @@ import ( var validSchemaPrivileges = NewPrivilegeSet( privilegeAddSearchOptimization, + privilegeCreateDynamicTable, privilegeCreateExternalTable, privilegeCreateFileFormat, privilegeCreateFunction, diff --git a/pkg/sdk/privileges.go b/pkg/sdk/privileges.go index 0d7a13d876..d4eb5958d9 100644 --- a/pkg/sdk/privileges.go +++ b/pkg/sdk/privileges.go @@ -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"