dagster
dagster copied to clipboard
fix InputContext partition methods for when upstream asset is not par…
…t of run
Summary & Motivation
In some situations where we materialize an asset that depends on a partitioned asset, and that upstream partitioned asset isn't part of the run, the methods of InputContext return incorrect values or fail. This fixes that.
This fixes part of the issue reported here: https://github.com/dagster-io/dagster/issues/9277.
How I Tested These Changes
Modified tests. Ran the HN example (along with changing to the example itself to use InputContext directly instead of upstream_output).
The latest updates on your projects. Learn more about Vercel for Git ↗︎