Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
fix: column_name resolution when parsing dbt generic tests (#798)
Browse files Browse the repository at this point in the history
  • Loading branch information
mederka authored Mar 28, 2023
1 parent 2b9247e commit f14e05b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions projects/fal/src/faldbt/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ def __post_init__(self):
assert isinstance(self.node, GenericTestNode)
self.column = self.node.column_name

# Column name might be stored in test_metadata
if not self.column and self.node.test_metadata.kwargs.get("column_name"):
self.column = self.node.test_metadata.kwargs.get("column_name")

@property
def source_id(self):
if self.source_ids:
Expand Down

0 comments on commit f14e05b

Please sign in to comment.