Repository navigation
Fixes
- Close a model's session without holding the connection manager lock, so a slow session close no longer stalls other threads' queries and can't leave a cluster idle long enough to auto-terminate mid-run (thanks @vinay-srivvina!) (#1706)
- Stop incremental runs from dropping and re-adding a foreign key whenever another schema in the same catalog has a constraint with the same name by @sd-db in #1702
- Replace a Hive metastore table with a view without renaming the table, so view models no longer fail on AWS with
DELTA_ALTER_TABLE_RENAME_NOT_ALLOWEDby @sd-db in #1701 - Fix unnamed primary and foreign keys churning on every incremental run, and two or more unnamed foreign keys to the same parent failing with
DELTA_CONSTRAINT_ALREADY_EXISTS. An unnamed PK/FK now gets the same deterministic name on every create and incremental path (V1 and V2, includinguse_safer_relation_operationsreplaces), so the incremental constraint diff is a no-op. Unnamed keys switch from server-assigned names to dbt-generated names on their next incremental run. Re-running a model withuse_safer_relation_operationsno longer fails withCONSTRAINT_ALREADY_EXISTS_IN_SCHEMAon its own primary key. by @sd-db in #1561 (resolves #1091, #1333 and #1344) - Emit constraint
ALTERstatements in a stable order on incremental runs instead of an order that varies between runs by @sd-db in #1698 - Stop dropping and re-adding a
customconstraint that declares a primary key on every incremental run, which also dropped foreign keys that reference it by @sd-db in #1700 (resolves #1699) - Make a replaced relation and its new type visible to the model's post-hooks and the rest of the run when a view, materialized view, streaming table, or metric view model replaces an existing relation by @sd-db in #1704
Under the Hood
- BREAKING for custom macro overrides only: Snapshots no longer call
create_indexesoradapter.commit(), both no-ops on Databricks, with no behavior change otherwise. Overrides ofcreate_indexesorget_create_index_sqlare no longer called for first-run snapshots by @sd-db in #1691 - BREAKING for custom macro overrides only: Seeds no longer branch on
use_materialization_v2, with no behavior change for either flag value. Overrides of the removedcreate_seed_v1/create_seed_v2macros, and ofcreate_indexesfor seeds, are no longer called by @sd-db in #1690
New Contributors
- @vinay-srivvina made their first contribution in #1706
Full Changelog: v1.12.6...v1.12.7