From b94cc51f4b23eeed2ae34f1c74ef05026228481d Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Sun, 24 Mar 2024 13:31:50 -0600 Subject: [PATCH 1/3] The "saved_query" selector method --- website/docs/reference/node-selection/methods.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/website/docs/reference/node-selection/methods.md b/website/docs/reference/node-selection/methods.md index f95b2603f45..6b4bbbafca4 100644 --- a/website/docs/reference/node-selection/methods.md +++ b/website/docs/reference/node-selection/methods.md @@ -385,3 +385,18 @@ dbt list --select +semantic_model:orders # list your semantic model named "orde ``` + +### The "saved_query" method + +Supported in v1.7 or newer. + + + +The `semantic_model` method selects [semantic models](/docs/build/saved-queries). + +```bash +dbt list --select saved_query:* # list all saved queries +dbt list --select +saved_query:orders_saved_query # list your saved query named "orders_saved_query" and all upstream resources +``` + + From efbd8cd4c405e902e064018f336f81c84a07d6a4 Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Sun, 24 Mar 2024 19:13:45 -0600 Subject: [PATCH 2/3] Double quotes to match other command examples --- website/docs/reference/node-selection/methods.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/reference/node-selection/methods.md b/website/docs/reference/node-selection/methods.md index 6b4bbbafca4..ecbd77e03aa 100644 --- a/website/docs/reference/node-selection/methods.md +++ b/website/docs/reference/node-selection/methods.md @@ -395,8 +395,8 @@ Supported in v1.7 or newer. The `semantic_model` method selects [semantic models](/docs/build/saved-queries). ```bash -dbt list --select saved_query:* # list all saved queries -dbt list --select +saved_query:orders_saved_query # list your saved query named "orders_saved_query" and all upstream resources +dbt list --select "saved_query:*" # list all saved queries +dbt list --select "+saved_query:orders_saved_query" # list your saved query named "orders_saved_query" and all upstream resources ``` From 428e17d29bd69657b9f8b9156002c331561b9cc9 Mon Sep 17 00:00:00 2001 From: Mirna Wong <89008547+mirnawong1@users.noreply.github.com> Date: Mon, 25 Mar 2024 09:21:52 +0000 Subject: [PATCH 3/3] Update website/docs/reference/node-selection/methods.md --- website/docs/reference/node-selection/methods.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/reference/node-selection/methods.md b/website/docs/reference/node-selection/methods.md index ecbd77e03aa..31d1dfe59fa 100644 --- a/website/docs/reference/node-selection/methods.md +++ b/website/docs/reference/node-selection/methods.md @@ -392,7 +392,7 @@ Supported in v1.7 or newer. -The `semantic_model` method selects [semantic models](/docs/build/saved-queries). +The `saved_query` method selects [saved queries](/docs/build/saved-queries). ```bash dbt list --select "saved_query:*" # list all saved queries