I’m looking at this page: BigQuery configurations | dbt Developer Hub
but in case of tags, I can only see either dbt_project.yml
or config in the model file. What if I have a specific yaml file in the subfolder (resource file) and I would like to configure it there where I keep the list of models.
I did this in my finance.yml
file that is in finance folder:
models:
- name: test
config:
tags:
- finance
- weekly
I also tried:
models:
- name: test
config:
labels:
finance: true
weekly: true
columns:
- name: id
config:
labels:
test: yes
But I have a feeling this is incorrect. I changed word tags
to labels
but then I get an error 'list' object has no attribute 'items'
Is it because BigQuery needs empty values for labels as key-pair and we can’t do that in yaml?
Also can we just add tags that are defined in IAM → Tags ? Without the policies?