Skip to content

Commit

Permalink
Merge pull request #712 from elementary-data/ele-3051-fallback-to-col…
Browse files Browse the repository at this point in the history
…umn_name-from-test_kwargs

Fallback to 'column_name' from 'test_kwargs'.
  • Loading branch information
elongl authored May 12, 2024
2 parents f1d47dc + 3c1efa2 commit 8821f60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros/edr/dbt_artifacts/upload_dbt_tests.sql
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
'unique_id': node_dict.get('unique_id'),
'short_name': test_short_name,
'alias': node_dict.get('alias'),
'test_column_name': node_dict.get('column_name'),
'test_column_name': node_dict.get('column_name') or test_kwargs.get('column_name'),
'severity': config_dict.get('severity'),
'warn_if': config_dict.get('warn_if'),
'error_if': config_dict.get('error_if'),
Expand Down

0 comments on commit 8821f60

Please sign in to comment.