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

[du] fixing imports for build_selection_from_dbt_something #21765

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
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ This is where you’d lean on a function like [`build_dbt_asset_selection`](http

The function will return an `AssetSelection` of the dbt models that match your dbt selector. Let’s put this into practice:

1. At the top of `jobs/__init__.py`, import `dbt_analytics` from the `assets.dbt` module:
1. At the top of `jobs/__init__.py`, import `dbt_analytics` from the `assets.dbt` module, along with the `build_dbt_asset_selection` function from `dagster_dbt`:

```python
from ..assets.dbt import dbt_analytics
from dagster_dbt import build_dbt_asset_selection
```

2. After the other selections, define a new variable called `dbt_trips_selection` and make a call to `build_dbt_asset_selection`. Pass in the `dbt_analytics` definition and a string that selects `stg_trips` and all dbt models downstream of it:
Expand Down