About config property
- Models
- Seeds
- Snapshots
- Tests
- Unit tests
- Sources
- Metrics
- Exposures
- Semantic models
- Saved queries
models/<filename>.yml
version: 2
models:
- name: <model_name>
config:
<model_config>: <config_value>
...
seeds/<filename>.yml
version: 2
seeds:
- name: <seed_name>
config:
<seed_config>: <config_value>
...
snapshots/<filename>.yml
version: 2
snapshots:
- name: <snapshot_name>
config:
<snapshot_config>: <config_value>
...
<resource_path>/<filename>.yml
version: 2
<resource_type>:
- name: <resource_name>
data_tests:
- <test_name>:
arguments: # available in v1.10.5 and higher. Older versions can set the <argument_name> as the top-level property.
<argument_name>: <argument_value>
config:
<test_config>: <config-value>
...
columns:
- name: <column_name>
data_tests:
- <test_name>
- <test_name>:
arguments: # available in v1.10.5 and higher. Older versions can set the <argument_name> as the top-level property.
<argument_name>: <argument_value>
config:
<test_config>: <config-value>
...
💡Did you know...
Available from dbt v1.8 or with the dbt "Latest" release track.
models/<filename>.yml
unit_tests:
- name: <test-name>
config:
enabled: true | false
meta: {dictionary}
tags: <string>
models/<filename>.yml
version: 2
sources:
- name: <source_name>
config:
<source_config>: <config_value>
tables:
- name: <table_name>
config:
<source_config>: <config_value>
Definition
The config
property allows you to configure resources at the same time you're defining properties in YAML files.
Was this page helpful?
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
0