Skip to content

limitations on using dict arguments of composite_solid are very damaging to dagster? #3731

Answered by sryza
hfrcomm asked this question in Q&A
Discussion options

You must be logged in to vote

I think the core issue causing the difficulty here is that composite solids are only meant for organizing solids, not directly defining computations. We're actually discussing a rename that will make this more clear, clarifying that composite solids are not solids, but containers for solids: #2902.

Because all computations in a pipeline must happen inside a solid, the way that I would think about implementing this would be to include a solid that does the unpacking. E.g.

@solid(output_defs=[OutputDefinition(name="val1"), OutputDefinition(name="val2")])
def unpack_dict(context, input_dict):
    yield Output(input_dict["val1"], output_name="val1")
    yield Output(input_dict["val2"], output…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@hfrcomm
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by sryza
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants