From 4dd975e012b3eb2c70b1b9435fcbdc5f6e199d7d Mon Sep 17 00:00:00 2001 From: marcinef Date: Mon, 9 Mar 2020 12:20:02 -0500 Subject: [PATCH] [feature] Add schema grant CREATE TEMPORARY TABLE (#147) Add schema grant CREATE TEMPORARY TABLE --- pkg/resources/privileges.go | 1 + pkg/resources/schema_grant.go | 1 + 2 files changed, 2 insertions(+) diff --git a/pkg/resources/privileges.go b/pkg/resources/privileges.go index 42990d1d8e..19b462abe4 100644 --- a/pkg/resources/privileges.go +++ b/pkg/resources/privileges.go @@ -36,6 +36,7 @@ const ( privilegeCreateProcedure privilege = "CREATE PROCEDURE" privilegeCreateExternalTable privilege = "CREATE EXTERNAL TABLE" privilegeCreateMaterializedView privilege = "CREATE MATERIALIZED VIEW" + privilegeCreateTemporaryTable privilege = "CREATE TEMPORARY TABLE" ) type privilegeSet map[privilege]struct{} diff --git a/pkg/resources/schema_grant.go b/pkg/resources/schema_grant.go index 821e187f0c..11f2474c20 100644 --- a/pkg/resources/schema_grant.go +++ b/pkg/resources/schema_grant.go @@ -27,6 +27,7 @@ var validSchemaPrivileges = newPrivilegeSet( privilegeCreateProcedure, privilegeCreateExternalTable, privilegeCreateMaterializedView, + privilegeCreateTemporaryTable, ) var schemaGrantSchema = map[string]*schema.Schema{