Skip to content

Commit

Permalink
[new docs] fix multi_asset
Browse files Browse the repository at this point in the history
  • Loading branch information
alangenfeld committed Dec 2, 2024
1 parent 10af5e8 commit ddd2f5e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

@dg.multi_asset(specs=[dg.AssetSpec("asset_one"), dg.AssetSpec("asset_two")])
def my_multi_asset():
dg.MaterializeResult(asset_key="asset_one", metadata={"num_rows": 10})
dg.MaterializeResult(asset_key="asset_two", metadata={"num_rows": 24})
yield dg.MaterializeResult(asset_key="asset_one", metadata={"num_rows": 10})
yield dg.MaterializeResult(asset_key="asset_two", metadata={"num_rows": 24})


defs = dg.Definitions(assets=[my_multi_asset])

0 comments on commit ddd2f5e

Please sign in to comment.