Skip to content

perf: emit only changed databricks_tags keys in ALTER SET TAGS - #1667

Open
sd-db wants to merge 3 commits into
mainfrom
sd-db/triage/dbt-relation-tags-full-desired-diff
Open

perf: emit only changed databricks_tags keys in ALTER SET TAGS#1667
sd-db wants to merge 3 commits into
mainfrom
sd-db/triage/dbt-relation-tags-full-desired-diff

Conversation

@sd-db

@sd-db sd-db commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Relation databricks_tags diffs now put only new or updated keys into ALTER … SET TAGS.
  • Unchanged desired keys are omitted; remote-only tags are still never unset (set-only semantics unchanged).
  • Unity Catalog SET TAGS upserts listed keys, so server state still converges.

Test plan

  • Unit: tests/unit/relation_configs/test_tags.py (including test_get_diff__omits_unchanged_keys)
  • Functional on databricks_uc_sql_endpoint: incremental tags, table tags, table tags via alter, view tags via alter
  • CI unit + integration on this PR

Unchanged desired keys are omitted from the payload; remote-only tags are still never unset.
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  dbt/adapters/databricks/relation_configs
  tags.py
Project Total  

This report was generated by python-coverage-comment-action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants