dbt-databricks icon indicating copy to clipboard operation
dbt-databricks copied to clipboard

Databricks Tags - Parity with dbt Tags

Open ludwig-sewall opened this issue 1 year ago • 1 comments

Describe the feature

I would like databricks_tags to be additive in the same way as dbt tags.

Describe alternatives you've considered

Current workarounds could be yaml anchors or simply rewriting the same config in multiple places. I think neither of the workarounds follow the DRY principles.

Additional context

In the dbt_project.yml below I'm using databricks_tags which is a map. In the example below I was at first expecting the persisted tags in Databricks to include both the owner tag and the tier but only the tier tag is persisted.

The expected result would be to persist both owner tag and the tier but only the tier tag is persisted

models:
  ludwig_sandbox:
    +persist_docs:
      relation: true
      columns: true
    +databricks_tags:
      owner: "platform-team"
    bronze:
      +materialized: view
    silver:
      +materialized: table
    gold:
      +materialized: table
      +access: public
      +databricks_tags:
        tier: "gold"

Who will this benefit?

Anyone who wants to persist dbt documentation in Databricks. Not having this feature will lead to inconsistencies in data governance.

Are you interested in contributing this feature?

I will not contribute personally but rather leave it as feature request

ludwig-sewall avatar Sep 10 '25 13:09 ludwig-sewall

Unfortunately, we don't control how map values get handled hierarchically :(.

benc-db avatar Sep 10 '25 16:09 benc-db

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.

github-actions avatar Apr 09 '26 02:04 github-actions

This is fixed post #1340 and will go out with v1.12 release

sd-db avatar Apr 28 '26 12:04 sd-db