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

Ignas Kizelevičius

07/27/2023, 1:40 PM
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

Lee Littlejohn

07/27/2023, 1:42 PM
i

Ignas Kizelevičius

07/27/2023, 1:45 PM
Did you manage to find a clearer approach?
l

Lee Littlejohn

07/27/2023, 1:50 PM
not yet
sadpanda 1
i

Ignas Kizelevičius

07/27/2023, 2:09 PM
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

Lee Littlejohn

07/27/2023, 2:13 PM
right, same thing, that op isn't necessarily a dummy, it can do things too
i

Ignas Kizelevičius

07/28/2023, 6:33 AM
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
77 Views