From 00a74fe8cc434aa2823f404dc4936db4633e69b6 Mon Sep 17 00:00:00 2001 From: Colin Date: Thu, 3 Oct 2024 15:53:25 -0700 Subject: [PATCH] add catalog concept --- dbt/adapters/base/__init__.py | 1 + dbt/adapters/capability.py | 2 ++ dbt/adapters/contracts/connection.py | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/dbt/adapters/base/__init__.py b/dbt/adapters/base/__init__.py index ade1af3d..f097cad9 100644 --- a/dbt/adapters/base/__init__.py +++ b/dbt/adapters/base/__init__.py @@ -1,5 +1,6 @@ from dbt.adapters.base.meta import available from dbt.adapters.base.column import Column +from dbt.adapters.base.catalogs import Catalog from dbt.adapters.base.connections import BaseConnectionManager from dbt.adapters.base.impl import ( AdapterConfig, diff --git a/dbt/adapters/capability.py b/dbt/adapters/capability.py index 2bd49112..4e410bb2 100644 --- a/dbt/adapters/capability.py +++ b/dbt/adapters/capability.py @@ -21,6 +21,8 @@ class Capability(str, Enum): """Indicates support for getting catalog information including table-level and column-level metadata for a single relation.""" + CreateExternalCatalog = "CreateExternalCatalog" + class Support(str, Enum): Unknown = "Unknown" diff --git a/dbt/adapters/contracts/connection.py b/dbt/adapters/contracts/connection.py index 2b694e00..751d6135 100644 --- a/dbt/adapters/contracts/connection.py +++ b/dbt/adapters/contracts/connection.py @@ -19,7 +19,7 @@ ValidatedStringMixin, dbtClassMixin, ) -from dbt_config.external_config import ExternalCatalogConfig +from dbt_config.catalog_config import ExternalCatalogConfig # TODO: this is a very bad dependency - shared global state