Hello, how can I define dependency between two `gr...
# ask-community
i
Hello, how can I define dependency between two
graph_asset
assets without using the output of the first one in any
op
? Currently I get an error:
Copy code
@graph 'graph_1' has unmapped input 'upstream'. Remove it or pass it to the appropriate op/graph invocation.
🤖 1
l
i
Did you manage to find a clearer approach?
l
not yet
sadpanda 1
i
Not sure if this is anything different from what you did, but I just added additional
ins={"upstream_dependency": In(dagster_type=Nothing)}
to the first op in the
asset_graph
. Not entirely the best solution but at least no dummy
op
needed
l
right, same thing, that op isn't necessarily a dummy, it can do things too
i
The issue I have with this approach is that the upstream dependency is treated as optional, i.e. the downstream asset is allowed to be materialized even if upstream is not materialized yet
120 Views