Skip to content

Commit

Permalink
fix(snowflake): add generation oddrn for models
Browse files Browse the repository at this point in the history
  • Loading branch information
Vixtir committed Sep 21, 2023
1 parent a41a397 commit 1fd6558
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion odd_dbt/mapper/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class SnowflakeGenerator(Generator):
def __init__(self, credentials: Credentials) -> None:
self.credentials = credentials

def _get_oddrn_for(self, model: ModelNode) -> str:
def _get_oddrn_for_model(self, model: ModelNode) -> str:
host = f"{self.credentials['account'].upper()}.snowflakecomputing.com"
database = self.credentials["database"] or self.credentials["dbname"]
database = database.upper()
Expand Down
2 changes: 1 addition & 1 deletion odd_dbt/mapper/lineage.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def map_model(self, node: ModelNode) -> ModelEntity:
type=DataEntityType.JOB,
metadata=[get_model_metadata(node)],
)
model_entity.add_output(get_materialized_entity_oddrn(node, self._context))
model_entity.add_input(get_materialized_entity_oddrn(node, self._context))
return model_entity


Expand Down

0 comments on commit 1fd6558

Please sign in to comment.