Skip to content

Commit

Permalink
Update docs/dagster-university/pages/dagster-dbt/lesson-5/2-connectin…
Browse files Browse the repository at this point in the history
…g-dbt-models-to-dagster-assets.md

Co-authored-by: Tim Castillo <[email protected]>
  • Loading branch information
erinkcochran87 and tacastillo authored Feb 27, 2024
1 parent aa4f689 commit ac5f886
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Open the `assets/dbt.py` file and do the following:
You’ve successfully written your first translator!

{% callout %}
> 💡 **Important!** dbt models and Dagster asset keys must be unique. If you're receiving a `DuplicateKeyError` , verify that the logic in `get_asset_key` doesn't return two of the same key!
> 💡 **Important!** dbt models and Dagster asset keys must be unique. If you're receiving a `DuplicateKeyError` , add some logging to verify that the logic in `get_asset_key` doesn't return two of the same key for different values!
{% /callout %}

5. Now, update the definition that uses `@dbt_assets` to be configured with an instance of the `CustomizedDagsterDbtTranslator`. The `@dbt_assets` decorator has a `dagster_dbt_translator` argument that you can pass this instance into. **Don’t forget to instantiate the class!**
Expand Down

0 comments on commit ac5f886

Please sign in to comment.