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
- sourceproperties (e.g.- loaded_at_field,- freshness)
- exposureproperties (e.g.- type,- maturity)
- macroproperties (e.g.- arguments)
Was this page helpful?
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
0