Skip to content

Commit

Permalink
Add identifier property support for source entity type.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemCLime committed Oct 25, 2023
1 parent be30a85 commit 1a09e44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dbt_osmosis/core/osmosis.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ def get_target_schema_path(self, node: ManifestNode) -> Path:
@staticmethod
def get_catalog_key(node: ManifestNode) -> CatalogKey:
"""Returns CatalogKey for a given node."""
if node.resource_type == NodeType.Source:
return CatalogKey(node.database, node.schema, getattr(node, "identifier", node.name))
return CatalogKey(node.database, node.schema, getattr(node, "alias", node.name))

def get_base_model(self, node: ManifestNode) -> Dict[str, Any]:
Expand Down

0 comments on commit 1a09e44

Please sign in to comment.