Can I add tests and descriptions in a config block?
dbt has the ability to define node configs in .yml
files, in addition to config()
blocks and dbt_project.yml
. But the reverse isn't always true: there are some things in .yml
files that can only be defined there.
Certain properties are special, because:
- They have a unique Jinja rendering context
- They create new project resources
- They don't make sense as hierarchical configuration
- They're older properties that haven't yet been redefined as configs
These properties are:
description
tests
docs
columns
quote
source
properties (e.g.loaded_at_field
,freshness
)exposure
properties (e.g.type
,maturity
)macro
properties (e.g.arguments
)
0