From d02c595ea20033e13960b8b6f307c744359aad52 Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Fri, 15 Sep 2023 18:36:58 -0600 Subject: [PATCH] Split out the file and fqn selection methods into their own sections --- website/docs/reference/node-selection/methods.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/website/docs/reference/node-selection/methods.md b/website/docs/reference/node-selection/methods.md index ff86d60c06a..a2c33cc4ff6 100644 --- a/website/docs/reference/node-selection/methods.md +++ b/website/docs/reference/node-selection/methods.md @@ -74,19 +74,28 @@ selectors unambiguous. -### The "file" or "fqn" method -The `file` or `fqn` method can be used to select a model by its filename, including the file extension (`.sql`). +### The "file" method +The `file` method can be used to select a model by its filename, including the file extension (`.sql`). ```bash # These are equivalent dbt run --select file:some_model.sql dbt run --select some_model.sql dbt run --select some_model -dbt run --select fqn:some_model # fqn is an abbreviation for "fully qualified name" ``` +### The "fqn" method + +The `fqn` method is used to select nodes based off their "fully qualified names" (FQN) within the dbt graph. The default output of [`dbt list`](/reference/commands/list) is a listing of FQN. + +``` +dbt run --select fqn:some_model +dbt run --select fqn:your_project.some_model +dbt run --select fqn:some_package.some_other_model +``` + ### The "package" method The `package` method is used to select models defined within the root project