snowplow / dbt-snowplow-utils

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

Fix initial dbt compile error (Close #69) #111

Closed georgewoodhead closed 1 year ago

georgewoodhead commented 1 year ago

Description & motivation

If a user sets up a fresh installation of one of the dbt-snowplow packages then tries to execute dbt compile before dbt run they will get a compilation error as some macros try to to reference relations that do not yet exist. We can handle this by checking if the relation exists in these macros and if not we raise a warning and return empty strings instead.

Checklist