Skip to main content

dispatch (config)

dbt_project.yml
dispatch:  - macro_namespace: packagename    search_order: [packagename]  - macro_namespace: packagename    search_order: [packagename]

Definition#

Optionally override the dispatch search locations for macros in certain namespaces.

Examples#

I've reimplemented certain macros from the dbt_utils package, and I want my versions to take precedence. Otherwise, fall back to the versions in dbt_utils.

dbt_project.yml
dispatch:  - macro_namespace: dbt_utils    search_order:   - macro_namespace: packagename    search_order: [packagename]

I want to "shim" the dbt_utils package with the spark_utils compatibility package.

dbt_project.yml
dispatch:  - macro_namespace: packagename    search_order: [packagename]  - macro_namespace: packagename    search_order: [packagename]