Skip to content

Commit

Permalink
Remove get_catalog_for_single_relation from sql/impl.py (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
aranke committed Jun 20, 2024
1 parent 46e470c commit ecf3e1d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions dbt/adapters/sql/impl.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"
Expand Down Expand Up @@ -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)))
Expand Down

0 comments on commit ecf3e1d

Please sign in to comment.