github databricks/dbt-databricks v1.12.0

3 hours ago

Features

  • Add support for metric views as a materialization by @benc-db in #1285
  • Add support for row filters by @sd-db in #1294
  • Add support for Python UDFs by @sd-db in #1336
  • Add support for key-only databricks_tags for table and column tagging. This can now be configured by setting tag values to empty strings "" or None. by @canbekley in #1339
  • Fetch relation metadata like constraints, column masks, row filters, etc with a single DESCRIBE TABLE EXTENDED ... AS JSON call, replacing multiple information_schema queries. Falls back to information_schema on older runtimes. Gated behind use_describe_as_json_for_relation_metadata behavior flag, off by default. by @tejassp-db in #1432
  • Support SCHEDULE EVERY and TRIGGER ON UPDATE refresh modes for materialized views and streaming tables, with parser and diff coverage so relations whose actual refresh is not CRON no longer crash on subsequent runs by @sd-db in #1434, closes #1293

Fixes

  • Fix metric_view failing with METRIC_VIEW_INVALID_VIEW_DEFINITION when models use bare {{ ref(...) }} for the source: field by @sd-db in #1430, closes #1361
  • Fix RefreshConfig.__eq__ self/other typo where two configs with the same cron but different time_zone_value compared equal by @sd-db in #1434
  • Fix streaming-table DROP-SCHEDULE path that was silently filtered out of the changeset by @sd-db in #1434
  • Use pydantic v1-compatible API in refresh.py so the adapter imports on environments shipping pydantic v1 by @sd-db in #1461

Under the Hood

  • BREAKING: databricks_tags defined at different hierarchy levels (e.g. project-level and model-level) now merge additively instead of the child config completely replacing the parent. by @canbekley in #1340
  • Skip information_schema.tags and information_schema.column_tags metadata fetches when table tags and column tags are not configured on a model. by @tejassp-db in #1387

Full Changelog: v1.11.8...v1.12.0

Don't miss a new dbt-databricks release

NewReleases is sending notifications on new releases.