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
[x] I have verified that these changes work locally
[NA] I have updated the README.md (if applicable)
[NA] I have added tests & descriptions to my models (and macros if applicable)
[NA] I have raised a documentation PR if applicable (Link here if required)
Description & motivation
If a user sets up a fresh installation of one of the dbt-snowplow packages then tries to execute
dbt compile
beforedbt 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