Skip to content

Commit

Permalink
Backport #210 to 0.10 release (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
gouline authored Jan 22, 2024
1 parent cd34587 commit c8683b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dbtmetabase/parsers/dbt_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,7 @@ def _read_model(

# Skip the incoming relationship tests, in which the fk_target_table is the model currently being read.
# Otherwise, the primary key of the current model would be (incorrectly) determined to be a foreign key.
is_incoming_relationship_test = depends_on_nodes[1] != unique_id
if len(depends_on_nodes) == 2 and is_incoming_relationship_test:
if len(depends_on_nodes) == 2 and depends_on_nodes[1] != unique_id:
logger().debug(
"Skip this incoming relationship test, concerning nodes %s.",
depends_on_nodes,
Expand Down

0 comments on commit c8683b2

Please sign in to comment.