Skip to content

Commit

Permalink
InputContext.upstream_output is missing key when source asset (#7919)
Browse files Browse the repository at this point in the history
  • Loading branch information
sryza committed May 16, 2022
1 parent 5897837 commit fe59b68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ def _op():
metadata=cast(Dict[str, Any], source_asset.metadata),
resource_config=resource_config,
resources=cast(NamedTuple, resources)._asdict(),
asset_key=source_asset_key,
)
input_context_with_upstream = build_input_context(
name=input_context.name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ def load_input(self, context):
assert context.resource_config["a"] == 7
assert context.resources.subresource == 9
assert context.upstream_output.resources.subresource == 9
assert context.upstream_output.asset_key == AssetKey("source1")
assert context.asset_key == AssetKey("source1")
return 5

@io_manager(config_schema={"a": int}, required_resource_keys={"subresource"})
Expand Down

0 comments on commit fe59b68

Please sign in to comment.