Misa Nogly Aleksic
02/09/2024, 12:32 PMdagster-dbt
v 0.22.4
.
Issue: Cannot reference same Dagster Asset Key in two DBT Sources
My guess is, we're not the only ones using this pattern: having one asset materialized as two or more tables, which are then used as DBT sources.Adam Bloom
02/09/2024, 1:47 PMMisa Nogly Aleksic
02/09/2024, 2:07 PMIOManager
allows you to abstract away from the asset how the asset is stored.
Hence, I should be able to choose whether I want to use a :
⢠single denormalized table, or
⢠a normalized data model, or
⢠any other approach.
If I stick to "one asset per table", I'm coupling my data model to my dagster code.
Granted, in DBT, I work directly with tables, so there's a baked-in coupling, but it doesn't have to be that way with Dagster too, I guess.rex
02/09/2024, 6:00 PMIf I stick to "one asset per table", I'm coupling my data model to my dagster code.With our documentation, we provide a method
get_asset_keys_by_output_name_for_source
so you don't have to statically define your asset keys when you define your computations. You can just retrieve them from your dbt project. https://docs.dagster.io/integrations/dbt/reference#upstream-dependenciesIsmael Rodrigues
02/09/2024, 7:46 PMIsmael Rodrigues
02/09/2024, 7:48 PMIsmael Rodrigues
02/09/2024, 7:48 PMIsmael Rodrigues
02/09/2024, 7:49 PMrex
02/09/2024, 7:51 PMMisa Nogly Aleksic
02/14/2024, 6:27 AMBrandon Freeman
02/21/2024, 10:53 PM