Skip to content

Commit

Permalink
adding a snippet for note
Browse files Browse the repository at this point in the history
  • Loading branch information
runleonarun committed Oct 25, 2024
1 parent afed115 commit 8b59ba6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 1 addition & 3 deletions website/docs/reference/global-configs/behavior-changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ Set the `skip_nodes_if_on_run_start_fails` flag to `True` to skip all selected r

:::note

The state directory needs to be built with dbt v1.9 or higher, or [Versionless](/docs/dbt-versions/versionless-cloud) dbt Cloud along with `state_modified_compare_more_unrendered_values: true` within your dbt_project.yml.

If the state directory was built with an older dbt version or if the `state_modified_compare_more_unrendered_values` behavior change flag was not set (or it was set to `false`), you need to rebuild the state directory to avoid false positives during state comparison with `state:modified`.
import StateModified from '/snippets/_state-modified-compare.md';

:::

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ dbt test -s "state:modified" --exclude "test_name:relationships"

To reduce false positives during `state:modified` selection due to env-aware logic, you can set the `state_modified_compare_more_unrendered_values` [behavior flag](/reference/global-configs/behavior-changes#behavior-change-flags) to `True`.

The state directory needs to be built with v1.9 or higher [Versionless](/docs/dbt-versions/versionless-cloud) dbt Cloud along with `state_modified_compare_more_unrendered_values: true` within your dbt_project.yml.

If the state directory was built with an older version or if the `state_modified_compare_more_unrendered_values` behavior change flag was not set (or set to '`false`), you need to rebuild it to avoid false positives during state comparison with `state:modified`.
import StateModified from '/snippets/_state-modified-compare.md';

</VersionBlock>

Expand Down
3 changes: 3 additions & 0 deletions website/snippets/_state-modified-compare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
The state directory needs to be built with dbt v1.9 or higher, or [Versionless](/docs/dbt-versions/versionless-cloud) dbt Cloud along with `state_modified_compare_more_unrendered_values: true` within your dbt_project.yml.

Check warning on line 1 in website/snippets/_state-modified-compare.md

View workflow job for this annotation

GitHub Actions / vale

[vale] website/snippets/_state-modified-compare.md#L1

[custom.Typos] Oops there's a typo -- did you really mean 'v1.9'?
Raw output
{"message": "[custom.Typos] Oops there's a typo -- did you really mean 'v1.9'? ", "location": {"path": "website/snippets/_state-modified-compare.md", "range": {"start": {"line": 1, "column": 48}}}, "severity": "WARNING"}

If the state directory was built with an older dbt version or if the `state_modified_compare_more_unrendered_values` behavior change flag was not set (or it was set to `false`), you need to rebuild the state directory to avoid false positives during state comparison with `state:modified`.

0 comments on commit 8b59ba6

Please sign in to comment.