You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Bug] When using the new format for tags (tags under config), column tests do not inherit the column level tags - causing differences in test selection #11984
I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
When having column level tags, the selection does not get picked up through dbt test -s "tag:tag"
Expected Behavior
The tests do get picked up.
Steps To Reproduce
version: 2models:
- name: orderscolumns:
- name: order_idconfig:
tags: [my_column_tag] # does not workdata_tests:
- unique
Run dbt test -s "tag:my_column_tag"
The selection criterion 'tag:my_column_tag' does not match any enabled nodes
The solution for now is to have test level tags
version: 2models:
- name: orderscolumns:
- name: order_iddata_tests:
- unique:
config:
tags: [my_test_tag] # does somehow work but it's 2x code for unique and not_null