feature: create a check-model-has-labels-keys
for dbt with BigQuery
#136
Labels
create a check-model-has-labels-keys
for dbt with BigQuery
#136
Describe the feature you'd like
dbt-checkpoint is great and the
check-model-has-meta-keys
is optimal to enforce Data Governance labels that we need in a big dbt project such as one with a data mesh architecture. With BigQuery, dbt gives us the possibility to assign also a list of keys to a dictionary calledlabels
and this keys will be passed to BigQuery and they also will be assigned to the table in the Data Warehouse.The idea here is to create a hook to enforce the labels keys to be filled, instead of the meta keys.
Additional context
I've tried to implement myself the hook by changing all the occurrences of "meta" in the
check-model-has-meta-keys.py
file for "labels", but it obviously didn't work as expected. After adding it to thesetup.cfg
and.pre-commit-hooks.yaml
files, I encounter the following error:So the conclusion is that I would like help to implement that, if it is possible somehow. I think it is a good feature for BigQuery + dbt users.
The text was updated successfully, but these errors were encountered: