https://dagster.io/ logo
#integration-dbt
Title
# integration-dbt
d

DDuran

02/13/2024, 3:46 AM
Hi Everyone, I have more than 40 Upstream assets that I load with Dagster, I need to create dependencies with the dbt models in the source.yml file. I am using something like this and it works: meta: dagster: asset_key: [“my_asset_key”] But when in the definition of my asset I add the key_prefix parameter to the decorator, the dependency breaks, for example key_prefix=“source1” and my asset is called def my_asset_key(): The dependency breaks, how can I declare it again within my source.yml? Adding the key_prefix plus the asset key?
l

Lee Littlejohn

02/14/2024, 6:38 PM
Yes, that's what I do. Try to keep in mind the order in which Dagster reads your code and applies those prefixes; it can be easy to get turned around.
👏 1
d

DDuran

02/15/2024, 1:00 PM
Thanks you very much
3 Views