Skip to content

I’m migrating from the load_assets_from_dbt_manifest to dbt_assets. How do I ensure that I get parity with my usage of the load_assets_from_dbt_manifest function? #18065

Answered by rexledesma
dagsir[bot] bot asked this question in Q&A
Discussion options

You must be logged in to vote

In the migration guide to 1.4.0, when these new dagster-dbt APIs were introduced, we include the mapping of arguments from load_assets_from_dbt_manifest to @dbt_assets.

Everything that you have is correct except the usage of get_metadata in your CustomDagsterDbtTranslator. get_metadata is for customizing metadata at definition time.

If you want to customize the metadata at run time, which is associated with your asset materializations, you should modify the compute function of @dbt_assets. My previous answer here gives an example: #17753 (comment).

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by rexledesma
Comment options

You must be logged in to vote
2 replies
@rexledesma
Comment options

@akshay-acuitymd
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
integration: dbt Related to dagster-dbt
2 participants