From 2a7825adbeee427fd14cf15abec685c39b578625 Mon Sep 17 00:00:00 2001 From: Amy Chen <46451573+amychen1776@users.noreply.github.com> Date: Wed, 8 Jan 2025 19:46:45 -0500 Subject: [PATCH 1/5] Update snowflake-configs.md --- .../docs/reference/resource-configs/snowflake-configs.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/website/docs/reference/resource-configs/snowflake-configs.md b/website/docs/reference/resource-configs/snowflake-configs.md index 9d84e892236..31c399219e4 100644 --- a/website/docs/reference/resource-configs/snowflake-configs.md +++ b/website/docs/reference/resource-configs/snowflake-configs.md @@ -337,6 +337,13 @@ For dbt limitations, these dbt features are not supported: - [Model contracts](/docs/collaborate/govern/model-contracts) - [Copy grants configuration](/reference/resource-configs/snowflake-configs#copying-grants) +### Troubleshooting Dynamic Tables +- If your dynamic table model is unable to rerun after the initial execution and fails with this error message: + ```sql + SnowflakeDynamicTableConfig.__init__() missing 6 required positional arguments: 'name', 'schema_name', 'database_name', 'query', 'target_lag', and 'snowflake_warehouse' + ``` + Check to ensure that `QUOTED_IDENTIFIERS_IGNORE_CASE` on your account is set to FALSE. + ## Temporary tables Incremental table merges for Snowflake prefer to utilize a `view` rather than a `temporary table`. The reasoning is to avoid the database write step that a temporary table would initiate and save compile time. From 7fa317d1d078066f853cdc4153038e1640b6c119 Mon Sep 17 00:00:00 2001 From: Matt Shaver <60105315+matthewshaver@users.noreply.github.com> Date: Wed, 8 Jan 2025 19:49:55 -0500 Subject: [PATCH 2/5] Apply suggestions from code review --- website/docs/reference/resource-configs/snowflake-configs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/reference/resource-configs/snowflake-configs.md b/website/docs/reference/resource-configs/snowflake-configs.md index 31c399219e4..a9038c5b266 100644 --- a/website/docs/reference/resource-configs/snowflake-configs.md +++ b/website/docs/reference/resource-configs/snowflake-configs.md @@ -338,11 +338,11 @@ For dbt limitations, these dbt features are not supported: - [Copy grants configuration](/reference/resource-configs/snowflake-configs#copying-grants) ### Troubleshooting Dynamic Tables -- If your dynamic table model is unable to rerun after the initial execution and fails with this error message: +- If your dynamic table model fails to rerun with the following error message after the initial execution: ```sql SnowflakeDynamicTableConfig.__init__() missing 6 required positional arguments: 'name', 'schema_name', 'database_name', 'query', 'target_lag', and 'snowflake_warehouse' ``` - Check to ensure that `QUOTED_IDENTIFIERS_IGNORE_CASE` on your account is set to FALSE. + Ensure that `QUOTED_IDENTIFIERS_IGNORE_CASE` on your account is set to `FALSE`. ## Temporary tables From 3063f0c4cfba48ffd58d1c56838a6d2abe81c45a Mon Sep 17 00:00:00 2001 From: Matt Shaver <60105315+matthewshaver@users.noreply.github.com> Date: Wed, 8 Jan 2025 19:50:25 -0500 Subject: [PATCH 3/5] Update website/docs/reference/resource-configs/snowflake-configs.md --- website/docs/reference/resource-configs/snowflake-configs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/reference/resource-configs/snowflake-configs.md b/website/docs/reference/resource-configs/snowflake-configs.md index a9038c5b266..b21036d14c7 100644 --- a/website/docs/reference/resource-configs/snowflake-configs.md +++ b/website/docs/reference/resource-configs/snowflake-configs.md @@ -337,7 +337,7 @@ For dbt limitations, these dbt features are not supported: - [Model contracts](/docs/collaborate/govern/model-contracts) - [Copy grants configuration](/reference/resource-configs/snowflake-configs#copying-grants) -### Troubleshooting Dynamic Tables +### Troubleshooting dynamic tables - If your dynamic table model fails to rerun with the following error message after the initial execution: ```sql SnowflakeDynamicTableConfig.__init__() missing 6 required positional arguments: 'name', 'schema_name', 'database_name', 'query', 'target_lag', and 'snowflake_warehouse' From 7f7fd9c6db7adba3906a3e2bf3650e9cc64a6a4a Mon Sep 17 00:00:00 2001 From: Matt Shaver <60105315+matthewshaver@users.noreply.github.com> Date: Wed, 8 Jan 2025 19:52:32 -0500 Subject: [PATCH 4/5] Update snowflake-configs.md Removing bullet until there are more items --- .../reference/resource-configs/snowflake-configs.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/website/docs/reference/resource-configs/snowflake-configs.md b/website/docs/reference/resource-configs/snowflake-configs.md index b21036d14c7..30275450793 100644 --- a/website/docs/reference/resource-configs/snowflake-configs.md +++ b/website/docs/reference/resource-configs/snowflake-configs.md @@ -338,11 +338,13 @@ For dbt limitations, these dbt features are not supported: - [Copy grants configuration](/reference/resource-configs/snowflake-configs#copying-grants) ### Troubleshooting dynamic tables -- If your dynamic table model fails to rerun with the following error message after the initial execution: - ```sql - SnowflakeDynamicTableConfig.__init__() missing 6 required positional arguments: 'name', 'schema_name', 'database_name', 'query', 'target_lag', and 'snowflake_warehouse' - ``` - Ensure that `QUOTED_IDENTIFIERS_IGNORE_CASE` on your account is set to `FALSE`. + +If your dynamic table model fails to rerun with the following error message after the initial execution: + +```sql +SnowflakeDynamicTableConfig.__init__() missing 6 required positional arguments: 'name', 'schema_name', 'database_name', 'query', 'target_lag', and 'snowflake_warehouse' +``` +Ensure that `QUOTED_IDENTIFIERS_IGNORE_CASE` on your account is set to `FALSE`. ## Temporary tables From 104e8c1f302fd3ba3978d2265629c2ee5bc2d262 Mon Sep 17 00:00:00 2001 From: diegomorales-dbtlabs Date: Thu, 16 Jan 2025 12:55:48 +1300 Subject: [PATCH 5/5] Update data-tests.md (clarify usage of singular tests in the `tests` directory) (#6780) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit clarify usage of singular tests in the `tests` directory Added a note to explain that singular tests in the `tests` directory are automatically executed during `dbt test` and should not be referenced in `schema.yml` to avoid errors. as explained in this post https://discourse.getdbt.com/t/custom-test-not-recognized/12036 ## What are you changing in this pull request and why? ## Checklist - [ ] I have reviewed the [Content style guide](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/content-style-guide.md) so my content adheres to these guidelines. - [ ] The topic I'm writing about is for specific dbt version(s) and I have versioned it according to the [version a whole page](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#adding-a-new-version) and/or [version a block of content](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#versioning-blocks-of-content) guidelines. - [ ] I have added checklist item(s) to this list for anything anything that needs to happen before this PR is merged, such as "needs technical review" or "change base branch." - [ ] The content in this PR requires a dbt release note, so I added one to the [release notes page](https://docs.getdbt.com/docs/dbt-versions/dbt-cloud-release-notes). --- 🚀 Deployment available! Here are the direct links to the updated files: - https://docs-getdbt-com-git-diegomorales-dbtlabs-patch-1-dbt-labs.vercel.app/docs/build/data-tests --------- Co-authored-by: Matt Shaver <60105315+matthewshaver@users.noreply.github.com> --- website/docs/docs/build/data-tests.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/website/docs/docs/build/data-tests.md b/website/docs/docs/build/data-tests.md index 559fe468644..24c468b976d 100644 --- a/website/docs/docs/build/data-tests.md +++ b/website/docs/docs/build/data-tests.md @@ -73,7 +73,9 @@ having total_amount < 0 The name of this test is the name of the file: `assert_total_payment_amount_is_positive`. -Note, you won't need to include semicolons (;) at the end of the SQL statement in your singular test files as it can cause your test to fail. +Note: +- Omit semicolons (;) at the end of the SQL statement in your singular test files, as they can cause your test to fail. +- Singular tests placed in the tests directory are automatically executed when running `dbt test`. Don't reference singular tests in `model_name.yml`, as they are not treated as generic tests or macros, and doing so will result in an error. To add a description to a singular test in your project, add a `.yml` file to your `tests` directory, for example, `tests/schema.yml` with the following content: