Skip to content

Is it possible to set IO managers at the DagsterType level as well? #3554

Answered by nancydyc
nancydyc asked this question in Q&A
Discussion options

You must be logged in to vote

It is important to vary behavior both by type and by mode. For example, to handle a Spark data frame, we sometimes need to load from the local file system, sometimes from the remote system. Varying purely on type was overly restrictive.

The pattern we encourage people to experience is to build IO managers that varying behavior based on the Dagster type that is on the input and output.

When IO manager is making decision about how to load or store output, it has access to the Dagster type on the input or the output defintion. It can vary how it loads based on that.

The other approach is to set the IO manager keys on the output definitions based on the type of the output definition. For exam…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by nancydyc
Comment options

You must be logged in to vote
3 replies
@alangenfeld
Comment options

@amarrella
Comment options

@alangenfeld
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants