From d72466357477ee23b2bfd2525219e7b4a73a89d4 Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Tue, 6 Feb 2024 07:41:30 -0700 Subject: [PATCH 1/3] The "plus" graph operator also selects the model itself --- website/docs/reference/node-selection/graph-operators.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/reference/node-selection/graph-operators.md b/website/docs/reference/node-selection/graph-operators.md index 8cba43e1b52..5e45412c4bb 100644 --- a/website/docs/reference/node-selection/graph-operators.md +++ b/website/docs/reference/node-selection/graph-operators.md @@ -3,7 +3,7 @@ title: "Graph operators" --- ### The "plus" operator -If placed at the front of the model selector, `+` will select all parents of the selected model. If placed at the end of the string, `+` will select all children of the selected model. +If placed at the front of the model selector, + will select all parents of the selected model and the model itself. If placed at the end of the string, + will select all children of the selected model and the model itself. ```bash From c20b3ce1a8bdd6e0cb01f1cc1c61c6e39c53294a Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Tue, 6 Feb 2024 07:49:45 -0700 Subject: [PATCH 2/3] Restore code formatting --- website/docs/reference/node-selection/graph-operators.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/reference/node-selection/graph-operators.md b/website/docs/reference/node-selection/graph-operators.md index 5e45412c4bb..50c01174be9 100644 --- a/website/docs/reference/node-selection/graph-operators.md +++ b/website/docs/reference/node-selection/graph-operators.md @@ -3,7 +3,7 @@ title: "Graph operators" --- ### The "plus" operator -If placed at the front of the model selector, + will select all parents of the selected model and the model itself. If placed at the end of the string, + will select all children of the selected model and the model itself. +If placed at the front of the model selector, `+` will select all parents of the selected model and the model itself. If placed at the end of the string, `+` will select all children of the selected model and the model itself. ```bash From f0ca432880bded84bc6043f7d7001198d689a586 Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Tue, 6 Feb 2024 07:50:34 -0700 Subject: [PATCH 3/3] Vertically align comments --- website/docs/reference/node-selection/graph-operators.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/docs/reference/node-selection/graph-operators.md b/website/docs/reference/node-selection/graph-operators.md index 50c01174be9..a260fea5438 100644 --- a/website/docs/reference/node-selection/graph-operators.md +++ b/website/docs/reference/node-selection/graph-operators.md @@ -9,7 +9,7 @@ If placed at the front of the model selector, `+` will select all parents of the ```bash dbt run --select "my_model+" # select my_model and all children dbt run --select "+my_model" # select my_model and all parents -dbt run --select "+my_model+" # select my_model, and all of its parents and children +dbt run --select "+my_model+" # select my_model, and all of its parents and children ``` @@ -22,7 +22,7 @@ to step through. ```bash dbt run --select "my_model+1" # select my_model and its first-degree children dbt run --select "2+my_model" # select my_model, its first-degree parents, and its second-degree parents ("grandparents") -dbt run --select "3+my_model+4" # select my_model, its parents up to the 3rd degree, and its children down to the 4th degree +dbt run --select "3+my_model+4" # select my_model, its parents up to the 3rd degree, and its children down to the 4th degree ``` @@ -32,5 +32,5 @@ The `@` operator is similar to `+`, but will also include _the parents of the ch ```bash -dbt run --models @my_model # select my_model, its children, and the parents of its children +dbt run --models @my_model # select my_model, its children, and the parents of its children ```