Skip to content

Commit

Permalink
Checked map length to prevent errors (#58)
Browse files Browse the repository at this point in the history
* Checked map length to prevent errors

* Revert "Checked map length to prevent errors"

Remove incompatible double quoted columns
  • Loading branch information
lvarley authored Oct 30, 2023
1 parent fea98db commit 7bd87a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbterd/adapters/algos/test_relationship.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def get_relationships(manifest, **kwargs):
f'{rule.get("c_to")}s', "unknown"
)
)
).lower(),
).replace("\"","").lower(),
str(
manifest.nodes[x].test_metadata.kwargs.get("column_name")
or manifest.nodes[x].test_metadata.kwargs.get(rule.get("c_from"))
Expand All @@ -93,7 +93,7 @@ def get_relationships(manifest, **kwargs):
f'{rule.get("c_from")}s', "unknown"
)
)
).lower(),
).replace("\"","").lower(),
],
type=get_relationship_type(
manifest.nodes[x].meta.get(TEST_META_RELATIONSHIP_TYPE, "")
Expand Down

0 comments on commit 7bd87a0

Please sign in to comment.