https://dagster.io/ logo
#ask-community
Title
# ask-community
s

Son Giang

07/01/2022, 4:39 AM
Hi everyone. How to define dependencies for
AssetDefinitions.from_graph
? Suppose that I have An asset
Asset1
which has key
AssetKey("prefix", "asset1")
and
Asset2
which has key
AssetKey("prefix", "asset2")
. And a graph
GraphX
, how can I use
AssetDefinitions.from_graph(GraphX,…)
to depends on
Asset1
and
Asset2
.
One note that we don’t want the
GraphX
to have upstream dependencies. We only want the asset constructed from
GraphX
to have upstream dependencies. I don’t know if it is possible.
c

chris

07/01/2022, 5:59 PM
This is not currently possible unfortunately - all dependencies must correspond to an input on the actual graph. It's a reasonable request though, so made an issue to track it https://github.com/dagster-io/dagster/issues/8712
👍 2
2 Views