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

[v0.18.0] New selectors #302

Merged
merged 5 commits into from
Jul 30, 2020
Merged
Show file tree
Hide file tree
Changes from 4 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
32 changes: 32 additions & 0 deletions website/docs/docs/guides/migration-guide/upgrading-to-0-18-0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
title: "Upgrading to 0.18.0"
jtcohen6 marked this conversation as resolved.
Show resolved Hide resolved
id: "upgrading-to-0-18-0"

---

:::info Prerelease

dbt v0.18.0 is currently in beta. Please post in the dbt Slack #prereleases channel
if you uncover any bugs or issues.

:::

dbt v0.18.0 introduces several new features around model selection.

## Articles:

- [Changelog](https://github.com/fishtown-analytics/dbt/blob/dev/marian-anderson/CHANGELOG.md)

## Breaking changes

Please be aware of the following changes in v0.18.0. While breaking, we do not expect these to affect the majority of projects.

### Adapter macros

* Previously, dbt put macros from all installed plugins into the namespace. This version of dbt will not include adapter plugin macros unless they are from the currently-in-use adapter or one of its dependencies.

## New and changed documentation

**Core**
- [model selection syntax](model-selection-syntax)
- [`dbt ls`](commands/list)
26 changes: 17 additions & 9 deletions website/docs/reference/commands/list.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,34 @@ Note that the `dbt ls` command does not include models which are disabled or sch

### Example usage

**Listing models by selector**
**Listing models by package**
```
$ dbt ls --models snowplow.*
model.snowplow.snowplow_base_events
model.snowplow.snowplow_base_web_page_context
model.snowplow.snowplow_id_map
model.snowplow.snowplow_page_views
model.snowplow.snowplow_sessions
snowplow.snowplow_base_events
snowplow.snowplow_base_web_page_context
snowplow.snowplow_id_map
snowplow.snowplow_page_views
snowplow.snowplow_sessions
...
```

**Listing tests by tag name**
```
$ dbt ls --select tag:nightly --resource-type test
model.my_project.orders
model.my_project.order_items
model.my_project.products
my_project.schema_test.not_null_orders_order_id
my_project.schema_test.unique_orders_order_id
my_project.schema_test.not_null_products_product_id
my_project.schema_test.unique_products_product_id
...
```

**Listing schema tests of incremental models**
```
$ dbt ls --select config.materialized:incremental,test_type:schema
model.my_project.logs_parsed
model.my_project.events_categorized
```

**Listing JSON output**
```
$ dbt ls --models snowplow.* --output json
Expand Down
Loading