Skip to content

Commit

Permalink
File selector method #1627
Browse files Browse the repository at this point in the history
  • Loading branch information
jtcohen6 committed Jul 14, 2022
1 parent 9a6b35c commit cb11d5c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ See GitHub discussion [dbt-labs/dbt-core#5468](https://github.com/dbt-labs/dbt-c

- **[Grants](/reference/resource-configs/grants)**: You should now manage access to the datasets you're producing with dbt by using grants instead of using hooks. If you already use post-hook to apply simple grants, moving to the grants feature will allow you to [DRY](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself) up your duplicated or boilerplate code.
- **[dbt-Jinja functions](reference/dbt-jinja-functions)** now include the [`itertools` Python module](dbt-jinja-functions/modules#itertools), as well as the [set](dbt-jinja-functions/set) and [zip](dbt-jinja-functions/zip) functions.
- **[Node selection](node-selection/syntax)** includes a [file selection method](node-selection/methods#the-file-method) (`-s model.sql`)

https://github.com/dbt-labs/docs.getdbt.com/labels/dbt-core%20v1.2
13 changes: 13 additions & 0 deletions website/docs/reference/node-selection/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,19 @@ selectors unambiguous.

</VersionBlock>

<VersionBlock firstVersion="1.2">

### 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 some_model.sql
dbt run --select some_model
```

</VersionBlock>

### The "package" method
<Changelog>New in v0.18.0</Changelog>

Expand Down

0 comments on commit cb11d5c

Please sign in to comment.