Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Issue 489: do not infer source pks from tests #490

Merged
merged 2 commits into from
Apr 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions data_diff/dbt.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,12 @@ def get_unique_columns(self) -> Dict[str, Set[str]]:
continue

uid = node.depends_on.nodes[0]

# sources can have tests and are not in manifest.nodes
# skip as source unique columns are not needed
if uid.startswith("source."):
continue

model_node = manifest.nodes[uid]

if node.test_metadata.name == "unique":
Expand Down