Skip to content

Commit

Permalink
rename: metadata -> catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
aranke committed Jun 3, 2024
1 parent 1f776a6 commit 30346c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .changes/unreleased/Features-20240528-013623.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kind: Features
body: Add get_metadata_for_single_relation capability
body: Add get_catalog_for_single_relation macro and capability
time: 2024-05-28T01:36:23.588295+01:00
custom:
Author: aranke
Expand Down
4 changes: 2 additions & 2 deletions dbt/adapters/sql/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

LIST_RELATIONS_MACRO_NAME = "list_relations_without_caching"
GET_COLUMNS_IN_RELATION_MACRO_NAME = "get_columns_in_relation"
GET_METADATA_FOR_SINGLE_RELATION_NAME = "get_metadata_for_single_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 @@ -162,7 +162,7 @@ def get_columns_in_relation(self, relation):

def get_catalog_for_single_relation(self, relation: BaseRelation) -> Optional[CatalogTable]:
return self.execute_macro(
GET_METADATA_FOR_SINGLE_RELATION_NAME, kwargs={"relation": relation}
GET_CATALOG_FOR_SINGLE_RELATION_NAME, kwargs={"relation": relation}
)

def create_schema(self, relation: BaseRelation) -> None:
Expand Down

0 comments on commit 30346c2

Please sign in to comment.