From ecf3e1d52bc31a4814f25fd67bc186bbb4ed132b Mon Sep 17 00:00:00 2001 From: Kshitij Aranke Date: Thu, 20 Jun 2024 17:41:48 +0100 Subject: [PATCH] Remove get_catalog_for_single_relation from sql/impl.py (#241) --- dbt/adapters/sql/impl.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/dbt/adapters/sql/impl.py b/dbt/adapters/sql/impl.py index 91ca3ebb..8a8473f2 100644 --- a/dbt/adapters/sql/impl.py +++ b/dbt/adapters/sql/impl.py @@ -1,6 +1,5 @@ from typing import Any, List, Optional, Tuple, Type, TYPE_CHECKING -from dbt_common.contracts.metadata import CatalogTable from dbt_common.events.functions import fire_event from dbt.adapters.base import BaseAdapter, BaseRelation, available @@ -12,7 +11,6 @@ LIST_RELATIONS_MACRO_NAME = "list_relations_without_caching" GET_COLUMNS_IN_RELATION_MACRO_NAME = "get_columns_in_relation" -GET_CATALOG_FOR_SINGLE_RELATION_NAME = "get_catalog_for_single_relation" LIST_SCHEMAS_MACRO_NAME = "list_schemas" CHECK_SCHEMA_EXISTS_MACRO_NAME = "check_schema_exists" CREATE_SCHEMA_MACRO_NAME = "create_schema" @@ -160,11 +158,6 @@ def get_columns_in_relation(self, relation): GET_COLUMNS_IN_RELATION_MACRO_NAME, kwargs={"relation": relation} ) - def get_catalog_for_single_relation(self, relation: BaseRelation) -> Optional[CatalogTable]: - return self.execute_macro( - GET_CATALOG_FOR_SINGLE_RELATION_NAME, kwargs={"relation": relation} - ) - def create_schema(self, relation: BaseRelation) -> None: relation = relation.without_identifier() fire_event(SchemaCreation(relation=_make_ref_key_dict(relation)))