change default behavior to update tags and docs (#215)

This commit is contained in:
desmond-hui 2023-01-20 09:37:31 -08:00 committed by GitHub
parent 23e2097ca8
commit ea0cf193bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -61,10 +61,10 @@ To add/update a model's snowflake tags, add/modify the `meta` model property und
) }}
```
By default, model tags are not pushed to snowflake on each load. You can push a tag update for a model by specifying the `UPDATE_SNOWFLAKE_TAGS` project variable during a run. **All views MUST be run with this setting otherwise the existing tags will be erased because DBT is re-creating the view each time it runs.**
By default, model tags are pushed to Snowflake on each DBT run. You can disable this by setting the `UPDATE_SNOWFLAKE_TAGS` project variable to `False` during a run.
```
dbt run --var '{"UPDATE_SNOWFLAKE_TAGS":True}' -s models/core/core__fact_swaps.sql
dbt run --var '{"UPDATE_SNOWFLAKE_TAGS":False}' -s models/core/core__fact_swaps.sql
```
### Querying for existing tags on a model in snowflake

View File

@ -54,4 +54,4 @@ models:
vars:
"dbt_date:time_zone": GMT
UPDATE_SNOWFLAKE_TAGS: False
UPDATE_UDFS_AND_SPS: False
UPDATE_UDFS_AND_SPS: True