Яхья Сакалов
02/13/2023, 12:31 PMowen
02/13/2023, 6:14 PMoutput_required=False
, then only yield an Output if rows exist. Something like
@asset(output_required=False)
def my_asset():
rows = ...
if len(rows) > 0:
yield Output(rows)
Яхья Сакалов
02/13/2023, 6:19 PMasset
but this method works only if your function is decodator, but it will be good if there will be same behaviour for classical functionЯхья Сакалов
02/13/2023, 6:28 PMowen
02/13/2023, 10:52 PMmy_custom_asset
decorator, then annotate your assets with
@my_custom_asset
def some_asset():
...