From b349a7b75c44dfc58d011402574ad983da597c38 Mon Sep 17 00:00:00 2001 From: Daniel Brooks Date: Tue, 9 Jul 2024 17:26:18 -0700 Subject: [PATCH] fix(apply_grants): allow blank grant_config --- macros/incremental_hooks/apply_grants.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros/incremental_hooks/apply_grants.sql b/macros/incremental_hooks/apply_grants.sql index 7eb42ba1..382ad587 100644 --- a/macros/incremental_hooks/apply_grants.sql +++ b/macros/incremental_hooks/apply_grants.sql @@ -6,7 +6,7 @@ You may obtain a copy of the Snowplow Personal and Academic License Version 1.0 #} {# Note this does not work for bigquery due to the role/IAM type approach they have to grants, so BQ users should not supply values to this var #} -{% macro default__apply_grants(relation, grant_config, should_revoke=True) %} +{% macro default__apply_grants(relation, grant_config={}, should_revoke=True) %} {# We only want to enforce this if the package user is managing grants this way - if they are doing it in database we should pass {} so that it's a no-op