From a4db43cdf58bd6036d512e0f61dfc9883e25ab28 Mon Sep 17 00:00:00 2001 From: Ben Cassell Date: Wed, 11 Dec 2024 12:05:17 -0800 Subject: [PATCH 1/3] Adding managed shallow clone --- dbt/adapters/databricks/relation.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dbt/adapters/databricks/relation.py b/dbt/adapters/databricks/relation.py index bc1dc991..528132f9 100644 --- a/dbt/adapters/databricks/relation.py +++ b/dbt/adapters/databricks/relation.py @@ -39,6 +39,7 @@ class DatabricksRelationType(StrEnum): Foreign = "foreign" StreamingTable = "streaming_table" External = "external" + ManagedShallowClone = "managed_shallow_clone" Unknown = "unknown" From a9127e57d85717845516f84ca2f5fc7448fc8acf Mon Sep 17 00:00:00 2001 From: Ben Cassell Date: Wed, 11 Dec 2024 12:44:44 -0800 Subject: [PATCH 2/3] allow more types --- dbt/adapters/databricks/relation.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dbt/adapters/databricks/relation.py b/dbt/adapters/databricks/relation.py index 528132f9..f69f02f5 100644 --- a/dbt/adapters/databricks/relation.py +++ b/dbt/adapters/databricks/relation.py @@ -40,6 +40,7 @@ class DatabricksRelationType(StrEnum): StreamingTable = "streaming_table" External = "external" ManagedShallowClone = "managed_shallow_clone" + ExternalShallowClone = "external_shallow_clone" Unknown = "unknown" From 2e78bfd5e63acba68e27a4f7f7f99b57847ad888 Mon Sep 17 00:00:00 2001 From: Ben Cassell Date: Wed, 11 Dec 2024 12:47:49 -0800 Subject: [PATCH 3/3] Changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) 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)