Defining column_name
in YAML for generic data tests is only for advanced use cases
#6436
Open
1 task done
Labels
content
Improvements or additions to content
improvement
Use this when an area of the docs needs improvement as it's currently unclear
Contributions
Link to the page on docs.getdbt.com requiring updates
https://docs.getdbt.com/reference/resource-properties/data-tests#test-an-expression
What part(s) of the page would you like to see updated?
It looks to me like the code example here dbt-labs/dbt-core#10966 (comment) lead to some confusion.
I don't know off the top of my head how we could/should refactor it, but we should give it a look if we can.
Currently, this code example seems to be trying to cover two things at the same time:
So maybe things will be less confusing if those two things are split into their own separate code examples?
It might be helpful to use a different example for SQL expressions. One idea is
expression_is_true
from dbt-utils:Test an expression
Another example:
Something to keep in mind is that this looks like it originally pointed to this example:
Additional information
No response
The text was updated successfully, but these errors were encountered: