О свойстве config
- Модели
- Сиды
- Снимки
- Тесты
- Модульные тесты
- Источники
- Метрики
- Экспозиции
- Семантические модели
- Сохранённые запросы
models/<filename>.yml
models:
- name: <model_name>
config:
<model_config>: <config_value>
...
seeds/<filename>.yml
seeds:
- name: <seed_name>
config:
<seed_config>: <config_value>
...
snapshots/<filename>.yml
snapshots:
- name: <snapshot_name>
config:
<snapshot_config>: <config_value>
...
<resource_path>/<filename>.yml
<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
sources:
- name: <source_name>
config:
<source_config>: <config_value>
tables:
- name: <table_name>
config:
<source_config>: <config_value>
Определение
Свойство config позволяет настраивать ресурсы одновременно с определением свойств в YAML файлах.
Нашли ошибку?
0