Remi Gabillet
02/03/2023, 11:40 AMstory_daily_stats
depends on the stories
asset.
story_daily_stats.sql
refers to source('core', 'stories')
declared in sources.yml. Dagster manages to link this source table with the stories
asset.
I could be wrong but is it done implicitly by using the same asset key on both sides?
• The original stories
asset is keyed: snowflake.core.stories
• dagster-dbt
seems to set the asset key to schema.model_name
with the ability to set key_prefix
but I can't find where in this project the prefix would be set to snowflake
🤷jamie
02/03/2023, 4:05 PMsnowflake
so that key prefix will be pre-pended to all of the sources defined in the sources.yml. Those sources are then matched to the assets with the corresponding asset keys. if you haven’t seen it yet, our dbt tutorial does a good job explaining this and how to do this for your own dbt projectRemi Gabillet
02/04/2023, 8:30 AM