From eb87c95a696e75d1b363bbdc37965b7f4fe5a701 Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Tue, 7 Nov 2023 17:21:32 -0700 Subject: [PATCH 1/2] Update example for disabling a source table --- .../docs/reference/resource-configs/resource-path.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/website/docs/reference/resource-configs/resource-path.md b/website/docs/reference/resource-configs/resource-path.md index 86b04430376..20406f26f2a 100644 --- a/website/docs/reference/resource-configs/resource-path.md +++ b/website/docs/reference/resource-configs/resource-path.md @@ -115,10 +115,10 @@ In the following project, this would only apply to the `payments` model:    └── payments.sql ``` -### Apply config source nested in a subfolder +### Apply config to a source nested in a subfolder -To disable a source nested in a YAML file in a subfolder, you will need to supply the path to that YAML file, as well as the source name in the `dbt_project.yml` file.

- The following example shows how to disable a source nested in a YAML file in a subfolder: +To disable a source table nested in a YAML file in a subfolder, you will need to supply the subfolder(s) within the path to that YAML file, as well as the source name and the table name in the `dbt_project.yml` file.

+ The following example shows how to disable a source table nested in a YAML file in a subfolder: @@ -126,8 +126,8 @@ To disable a source nested in a YAML file in a subfolder, you will need to suppl sources: your_project_name: subdirectory_name: - source_yaml_file_name: - source_name: - +enabled: false # This will apply to sources nested in subfolders. + source_name: + source_table_name: + +enabled: false ``` From 3e5948f01f860d196ba3b8095294e8b8b90c3ce4 Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Tue, 7 Nov 2023 17:29:23 -0700 Subject: [PATCH 2/2] Update the other example for disabling a source table --- website/docs/reference/source-configs.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/website/docs/reference/source-configs.md b/website/docs/reference/source-configs.md index c66f41f1cde..7e8a547489a 100644 --- a/website/docs/reference/source-configs.md +++ b/website/docs/reference/source-configs.md @@ -65,22 +65,22 @@ Sources can be configured via a `config:` block within their `.yml` definitions, You can disable sources imported from a package to prevent them from rendering in the documentation, or to prevent [source freshness checks](/docs/build/sources#snapshotting-source-data-freshness) from running on source tables imported from packages. -- **Note**: To disable a source nested in a YAML file in a subfolder, you will need to supply the path to that YAML file plus the source name in the dbt_project.yml file. For example: +- **Note**: To disable a source table nested in a YAML file in a subfolder, you will need to supply the subfolder(s) within the path to that YAML file, as well as the source name and the table name in the `dbt_project.yml` file.

+ The following example shows how to disable a source table nested in a YAML file in a subfolder: - ```yml + ```yaml sources: your_project_name: subdirectory_name: - source_yaml_file_name: - source_name: - +enabled: false # This will apply to sources nested in subfolders. + source_name: + source_table_name: + +enabled: false ``` - ### Examples #### Disable all sources imported from a package To apply a configuration to all sources included from a [package](/docs/build/packages),