-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BigQuery Label Accumulation #105
Comments
@Fraser-Isbester Thank you for bringing up this issue, seems to be a issue with the default MergeBehavior of the This issue raises the questions of :
I will continue to give any direction towards a possible solution as we discuss them @jtcohen6 custom merge behavior for configs has already been putting a bit of thought into this towards syntax behaviors we could or have tried. |
Also going to open up an issue in |
Hi, I actually just faced the same issue this week.
|
Tying this one with dbt-labs/dbt-core#5236 |
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue, or it will be closed in 7 days. |
This is very frustrating as someone trying to apply labels at various layers across many projects and datasets. The current way of doing this is unsustainable and although there are workarounds it would be much nicer to support this properly out of the box. Here is my current workaround:
{% macro labels(new_labels) %}
{{ model.config.get('labels').update(new_labels) | default("", true) }}
{% endmacro %}
{{
labels({
'foo': 'bar'
})
}} |
Describe the feature
BigQuery labels do not accumulate hierarchically unlike most other configurations in dbt.
Describe alternatives you've considered
You could simply duplicate every collection of labels/tags into the most-nested part of the dbt_project (or within the model config). But that's not really clean/sustainable.
Additional context
None really.
Who will this benefit?
Any org that uses BigQuery and not everyone interfaces directly with DBT.
Are you interested in contributing this feature?
Sure! I am a python developer but don't specifically know how the graph building/hierarchy works but if this is deemed a good first ticket I will gladly take it on.
The text was updated successfully, but these errors were encountered: