Skip to content

Commit

Permalink
add managed
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-rogers-dbt committed Dec 17, 2024
1 parent 98095f4 commit 58550d5
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions dbt/adapters/contracts/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
from enum import Enum
from typing import Optional, Tuple, List, Dict

from dbt.adapters.contracts.relation import RelationConfig
from dbt.adapters.protocol import CatalogIntegrationConfig
from dbt.adapters.relation_configs.formats import TableFormat


class CatalogIntegrationType(Enum):
managed = 'managed'
iceberg_rest = 'iceberg_rest'
glue = 'glue'
unity = 'unity'
Expand All @@ -19,22 +21,26 @@ class CatalogIntegration(abc.ABC):
specific integrations in the adapters.
"""
catalog_name: str
integration_name: str
table_format: TableFormat
integration_type: CatalogIntegrationType
external_volume: Optional[str] = None
namespace: Optional[str] = None

def __init__(
self, integration_config: CatalogIntegrationConfig
self, integration_config: CatalogIntegrationConfig
):
self.name = integration_config.name
self.catalog_name = integration_config.catalog_name
self.integration_name = integration_config.integration_name
self.table_format = TableFormat(integration_config.table_format)
self.type = CatalogIntegrationType(integration_config.type)
self.type = CatalogIntegrationType(integration_config.catalog_type)
self.external_volume = integration_config.external_volume
self.namespace = integration_config.namespace
self._handle_adapter_configs(integration_config.adapter_configs)

def _handle_adapter_configs(self, adapter_configs: Dict) -> None:
...

def render_ddl_predicates(self, relation_config: RelationConfig) -> str:
...

0 comments on commit 58550d5

Please sign in to comment.