From 01fffeaeef495226cdd89e43242d40c86b92e995 Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Tue, 16 Apr 2024 08:52:54 -0600 Subject: [PATCH] Remove non-functional example command and fix other one (#5272) [Preview](https://docs-getdbt-com-git-dbeatty10-patch-1-dbt-labs.vercel.app/reference/node-selection/syntax) ## What are you changing in this pull request and why? Noticed a couple code examples that won't work as-is, so fixed them by removing: - double quotes surrounding all the CLI flags - `--defer` flag for `ls` command ## Checklist - [x] Review 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. --- website/docs/reference/node-selection/syntax.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/docs/reference/node-selection/syntax.md b/website/docs/reference/node-selection/syntax.md index ed0b563731d..3711ea79314 100644 --- a/website/docs/reference/node-selection/syntax.md +++ b/website/docs/reference/node-selection/syntax.md @@ -111,7 +111,7 @@ Constructing and debugging your selection syntax can be challenging. To get a " dbt ls --select "path/to/my/models" # Lists all models in a specific directory. dbt ls --select "source_status:fresher+" # Shows sources updated since the last dbt source freshness run. dbt ls --select state:modified+ # Displays nodes modified in comparison to a previous state. -dbt ls --select "result:+ state:modified+ --defer --state ./" # Lists nodes that match certain [result statuses](/reference/node-selection/syntax#the-result-status) and are modified. +dbt ls --select "result:+" state:modified+ --state ./ # Lists nodes that match certain [result statuses](/reference/node-selection/syntax#the-result-status) and are modified. ``` @@ -186,7 +186,7 @@ After issuing one of the above commands, you can reference the results by adding ```bash # You can also set the DBT_STATE environment variable instead of the --state flag. -dbt run --select "result: --defer --state path/to/prod/artifacts" +dbt run --select "result:" --defer --state path/to/prod/artifacts ``` The available options depend on the resource (node) type: @@ -205,7 +205,7 @@ The available options depend on the resource (node) type: The state and result selectors can also be combined in a single invocation of dbt to capture errors from a previous run OR any new or modified models. ```bash -dbt run --select "result:+ state:modified+ --defer --state ./" +dbt run --select "result:+" state:modified+ --defer --state ./ ``` ### Fresh rebuilds