🚀 New: chi (χ) — an open-source autoresearch harness for fleets of LLM coding agents. Read the announcement.

Databricks CREATE OR REPLACE VIEW Stops Resetting Grants Tomorrow. Your dbt Project Was Using That Reset

From December 2, 2026, CREATE OR REPLACE VIEW on Databricks SQL warehouses, serverless and DBR 19+ updates Unity Catalog views in place and keeps grants, tags and comments. dbt-databricks replaces views with that statement, so hand-made grants and removed tags now survive runs, and dropping a governed-tagged column fails.

Contents

Starting December 2, 2026, CREATE OR REPLACE VIEW on Databricks “will update views in-place, instead of dropping and re-creating the view.” Grants, tags and comments on the existing view are kept. Until now, replacing a Unity Catalog view threw that metadata away, and plenty of pipelines depended on that without saying so.

dbt is the obvious one. dbt-databricks rebuilds every view model with a plain CREATE OR REPLACE VIEW, with no COPY or NOCOPY clause. So on Wednesday the same dbt project, with no code change, starts producing views whose access and tags depend on their history, not only on the model config.

What changes, and where

Databricks’ knowledge base article lists the affected compute:

  • Databricks SQL warehouses (serverless, pro and classic)
  • serverless compute for notebooks and jobs
  • Spark Declarative Pipelines (serverless or classic)
  • classic all-purpose and jobs compute on Databricks Runtime 19 or above

The CREATE VIEW reference adds a COPY * / NOCOPY * clause for Unity Catalog managed views, valid only with OR REPLACE. Its default depends on the runtime: on Databricks Runtime 18.3 the default is “not preserved”, the same as NOCOPY *; on Runtime 19 and above it is “preserved”, the same as COPY *.

That runtime split is the first thing to check. A team that runs dbt from a job cluster pinned to an older LTS runtime and also runs it from a SQL warehouse will get different results from the same statement until both paths are on the new behavior. If anything you own asserts “after a rebuild, the view has exactly these grants”, that assertion now depends on which compute ran the rebuild.

Two details from the docs are easy to miss:

  • The replacer still becomes the owner. The reference says the caller must be the owner or hold MANAGE, and “the replacer becomes the new owner.” In-place does not mean ownership is preserved.
  • Governed tags are the exception to NOCOPY *. The release note says NOCOPY * drops grants, tags and comments, but “governed tags are still retained.”

The new failure: dropping a tagged column

If a view column carries a governed tag and the new definition no longer has that column, the statement fails with CANNOT_DROP_TAGGED_COLUMN. Databricks says this protects ABAC policies that reference the tag. The KB article is explicit that there is no escape hatch: NOCOPY * does not help, and you have to remove the tag first:

UNSET TAG ON COLUMN main.analytics.customer_v.pan_last4 pii;

CREATE OR REPLACE VIEW main.analytics.customer_v AS
SELECT customer_id, city FROM main.raw.customers;

The UNSET TAG ON COLUMN form comes from the tags documentation, which shows it for tables; the KB article names the same statement for views. Removing a governed tag needs the right permission on the tag, so the person or service principal running the deploy may not be able to do it.

In dbt terms, this is a model change that used to be routine: delete a column from the SELECT. If that column had a governed tag, whether dbt set it or a governance team did, the run now fails at the CREATE OR REPLACE statement.

What dbt-databricks actually does on a view rebuild

I read the view materialization in dbt-databricks 1.13.1 and the shared grant macros in dbt-adapters. By default (view_update_via_alter unset), an existing view goes through replace_with_view. The adapter’s replace logic has a comment that says it plainly: “View-to-view replacement uses CREATE OR REPLACE, regardless of safer mode.” After the replace, the materialization calls apply_grants(target_relation, grant_config, should_revoke=True). In dbt-adapters, that macro runs SHOW GRANTS, diffs the result against your config, and revokes anything extra. So a model with a grants: block converges on the configured grants either way, and preserved grants are revoked on the next run. But the macro starts with {% if grant_config %} and the comment “If grant_config is {} or None, this is a no-op”. A view model with no grants config never reconciles. Before Wednesday, every rebuild cleared any grant someone had added by hand. After Wednesday, those grants stay for as long as the view exists.

Tags work differently. apply_tags and apply_column_tags only issue SET TAGS for what the config contains. Nothing in the replace path unsets a tag. Removing a key from databricks_tags used to take effect on the next run because the view was recreated without it. Now the old tag stays on the view until someone unsets it.

And if the model’s SQL removes a column that has a governed tag, the CREATE OR REPLACE itself fails, before dbt gets to its grant and tag steps.

The grants case is the one with a security edge. Say an analyst group got SELECT on a view by hand, outside dbt, and nobody worried because the next nightly run reset it. Then someone adds a column to that view. Under the old behavior, the widened view came back with no hand-made grants. Under the new one, the group can read the new column immediately. The grant was made against one definition and now applies to a different one.

What to do before the change lands

Find views that carry grants. The information_schema.table_privileges view lists privileges per relation, and information_schema.tables tells you which relations are views:

SELECT p.table_catalog, p.table_schema, p.table_name,
       p.grantee, p.privilege_type, p.inherited_from
FROM system.information_schema.table_privileges p
JOIN system.information_schema.tables t
  ON  t.table_catalog = p.table_catalog
  AND t.table_schema  = p.table_schema
  AND t.table_name    = p.table_name
WHERE t.table_type = 'VIEW';

Two caveats from the docs. A user with only MANAGE sees just their own grants in this view, so run it as someone with broader visibility. And inherited_from is documented only as the ancestor the privilege is inherited from, so check a few rows by hand before you treat it as a “granted directly” flag. Databricks’ KB article also links a diagnostic notebook that finds views with directly assigned grants or governed-tagged columns.

Then decide, per project, which behavior you want:

  • dbt views whose access dbt should fully own: give them a grants config, even a minimal one. That turns on dbt’s revoke-the-difference logic. An empty grants: {} does not, because the macro treats {} as a no-op.
  • Scripts and jobs that relied on the reset: add NOCOPY * to the statement. Keep in mind it only applies to Unity Catalog managed views and only with OR REPLACE; other uses raise an error. It also does not remove governed tags.
  • Tag keys removed from a dbt config: unset them once by hand, or with a post-hook. The adapter will not do it for you.
  • Column drops on views with governed tags: put the UNSET TAG ON COLUMN in the same change as the model edit, and make sure the deploy identity is allowed to run it.

I think the new default is the better one. A view that loses its grants because someone fixed a typo in its SQL was always a strange outcome. The cost is that the drop was doing access cleanup in places nobody wrote down, and for dbt users the biggest such place is every view model without a grants block.

Sources