Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split out the file and fqn selection methods into their own sections #4083

Merged
merged 3 commits into from
Sep 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions website/docs/reference/node-selection/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,19 +74,28 @@ selectors unambiguous.

<VersionBlock firstVersion="1.2">

### 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"
```

</VersionBlock>

### 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
Expand Down
Loading