From 40925aa41c204c39e37ca0236d57996a76ab7c90 Mon Sep 17 00:00:00 2001 From: Ben Cassell <98852248+benc-db@users.noreply.github.com> Date: Wed, 11 Dec 2024 13:37:31 -0800 Subject: [PATCH] dbt codegen only manually handles limited sets of Databricks types (#875) --- CHANGELOG.md | 1 + dbt/adapters/databricks/relation.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b8a858ae..a28b42dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ### Under the Hood - Removed pins for pandas and pydantic to ease user burdens ([874](https://github.com/databricks/dbt-databricks/pull/874)) +- Add more relation types to make codegen happy ([875](https://github.com/databricks/dbt-databricks/pull/875)) ## dbt-databricks 1.9.0 (December 9, 2024) diff --git a/dbt/adapters/databricks/relation.py b/dbt/adapters/databricks/relation.py index bc1dc991..f69f02f5 100644 --- a/dbt/adapters/databricks/relation.py +++ b/dbt/adapters/databricks/relation.py @@ -39,6 +39,8 @@ class DatabricksRelationType(StrEnum): Foreign = "foreign" StreamingTable = "streaming_table" External = "external" + ManagedShallowClone = "managed_shallow_clone" + ExternalShallowClone = "external_shallow_clone" Unknown = "unknown"