Skip to content

Commit

Permalink
fix(apply_grants): allow blank grant_config
Browse files Browse the repository at this point in the history
  • Loading branch information
bassrock authored Jul 10, 2024
1 parent 19d16b3 commit b349a7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros/incremental_hooks/apply_grants.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b349a7b

Please sign in to comment.