Skip to content

Commit

Permalink
fix(ingest/redshift): too many values unpack (#9394)
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal committed Dec 6, 2023
1 parent 3c0727e commit a9c5c39
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,8 @@ def _get_upstream_lineages(
qualified_table_name = dataset_urn.DatasetUrn.create_from_string(
source.urn
).get_entity_id()[1]
db, schema, table = qualified_table_name.split(".")
# -3 because platform instance is optional and that can cause the split to have more than 3 elements
db, schema, table = qualified_table_name.split(".")[-3:]
if db == raw_db_name:
db = alias_db_name
path = f"{db}.{schema}.{table}"
Expand Down

0 comments on commit a9c5c39

Please sign in to comment.