Is it possible to add dependencies to SourceAssets...
# ask-community
c
Is it possible to add dependencies to SourceAssets? Our underlying data looks something like raw -> cleaned -> dataproduct. Raw and dataproduct are both tables, but the
cleaned
is merely a view on raw that is created in a notebook. I'd like to create the dependencies in dagster though. So if
raw
is newer than
dataproduct
it'll be marked as stale, but i don't want
cleaned
to be an actual asset that dagster thinks it needs to materialize, because it isn't. My current best bet is to create an asset that has a no-op
j
Hi @Casper Weiss Bang dependencies to source assets isn’t supported right now. Feel free to open a github feature request though!
c
cool cool. I'm not sure that would give me the stale-status through. I've done it with what i called a
faux_asset
- which still has to be materialized, but is materialized instantly. And i'll just make it update automatically when it's dependencies materialize.