Skip to content

Commit

Permalink
update with adapter_configs
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-rogers-dbt committed Dec 13, 2024
1 parent 8386b5f commit 4822c2e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion dbt/adapters/contracts/catalog.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import abc
from enum import Enum
from typing import Optional
from typing import Optional, Tuple, List, Dict

from dbt.adapters.protocol import CatalogIntegrationConfig
from dbt.adapters.relation_configs.formats import TableFormat
Expand Down Expand Up @@ -33,4 +33,8 @@ def __init__(
self.type = CatalogIntegrationType(integration_config.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:
...

5 changes: 3 additions & 2 deletions dbt/adapters/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,12 @@ class CatalogIntegrationProtocol(Protocol):


class CatalogIntegrationConfig(Protocol):
name: str
integration_name: str
table_format: str
type: str
catalog_type: str
external_volume: Optional[str]
namespace: Optional[str]
adapter_configs: Optional[Dict]


Self = TypeVar("Self", bound="RelationProtocol")
Expand Down

0 comments on commit 4822c2e

Please sign in to comment.