About source configurations
Available configurations
Sources only support one configuration, enabled
.
General configurations
- Project file
- Property file
dbt_project.yml
sources:
<resource-path>:
+enabled: true | false
Configuring sources
Examples
Disable all sources imported from a package
To apply a configuration to all sources included from a package,
state your configuration under the project name in the
sources:
config as a part of the resource path.
dbt_project.yml
sources:
events:
+enabled: false
Disable a single source from a package
To disable a specific source from another package, qualify the resource path for your configuration with both a package name and a source name. In this case, we're disabling the clickstream
source from the events
package.
dbt_project.yml
sources:
events:
clickstream:
+enabled: false
Similarly, you can disable a specific table from a source by qualifying the resource path with a package name, source name, and table name:
dbt_project.yml
sources:
events:
clickstream:
pageviews:
+enabled: false
Example source configuration
The following is a valid source configuration for a project with:
name: jaffle_shop
- A package called
events
containing multiple source tables
dbt_project.yml
name: jaffle_shop
config-version: 2
...
sources:
# project names
jaffle_shop:
+enabled: true
events:
# source names
clickstream:
# table names
pageviews:
+enabled: false
link_clicks:
+enabled: true
0