Skip to content

Commit

Permalink
fix internal asset deps resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieDeMaria committed Aug 31, 2023
1 parent 5145a3b commit 33be378
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ def inner(fn: Callable[..., Any]) -> AssetsDefinition:
dep.asset_key
for spec in specs
for dep in spec.deps
if dep not in output_tuples_by_asset_key
if dep.asset_key not in output_tuples_by_asset_key
}

explicit_ins = ins or {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1922,19 +1922,6 @@ def test_asset_spec_deps():
def table_A():
pass

# TODO - remove, here for debug
@multi_asset(
outs={"a": AssetOut(), "b": AssetOut(), "c": AssetOut()},
internal_asset_deps={
"a": {AssetKey("in1"), AssetKey("in2")},
"b": set(),
"c": {AssetKey("a"), AssetKey("b"), AssetKey("in2"), AssetKey("in3")},
},
can_subset=True,
)
def abc_(context, in1, in2, in3):
pass

table_b = AssetSpec("table_B", deps=[table_A])
table_c = AssetSpec("table_C", deps=[table_A, table_b])
table_b_no_dep = AssetSpec("table_B")
Expand Down

0 comments on commit 33be378

Please sign in to comment.