Skip to content

Commit

Permalink
dc-291: Small refactor on function (#292)
Browse files Browse the repository at this point in the history
Signed-off-by: Helder Ribeiro <[email protected]>
  • Loading branch information
hjribeiro-moj authored Oct 8, 2024
1 parent 6d8b0ee commit 1425e81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ingestion/ingestion_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
@report_time
def get_cadet_metadata_json(s3_uri: str) -> Dict:
"""
Returns dict object containin metadata from the json file at the given s3 path.
Returns dict object containing metadata from the json file at the given s3 path.
Examples are the manifest file or the database_metadata file
"""
try:
Expand Down Expand Up @@ -121,9 +121,9 @@ def parse_database_and_table_names(node: dict) -> tuple[str, str]:
node_table_name = node["fqn"][-1].split("__")[-1]
# schema holds the database name after parsing from cadet and so will be
# representative of the cadet env (where dev dbs have suffix `_dev_dbt`)
node_dataabse_name = node["schema"]
node_database_name = node["schema"]

return node_dataabse_name, node_table_name
return node_database_name, node_table_name


def list_datahub_domains() -> list[str]:
Expand Down

0 comments on commit 1425e81

Please sign in to comment.