snowplow / dbt-snowplow-utils

Snowplow utility functions to be used in conjunction with the snowplow-web dbt package.
Other
12 stars 6 forks source link

fix(apply_grants): allow blank grant_config #175

Closed bassrock closed 1 month ago

bassrock commented 2 months ago

Description

This PR fixes apply_grants to ensure that grants_config is defined even if the user does not set it.

This aims to solve the following issue:

23:39:56  
23:39:56
23:39:56    Compilation Error in model snowplow_unified_app_errors (models/optional_modules/app_errors/snowplow_unified_app_errors.sql)
  'grant_config' is undefined

  > in macro apply_grants (macros/adapters/apply_grants.sql)
  > called by macro materialization_clone_default (macros/materializations/models/clone/clone.sql)
  > called by model snowplow_unified_app_errors (models/optional_modules/app_errors/snowplow_unified_app_errors.sql)

What type of PR is this? (check all applicable)

Checklist

Added tests?

Added to documentation?

[optional] Are there any post-deployment tasks we need to perform?

[optional] What gif best describes this PR or how it makes you feel?