Edvard Lindelöf
06/13/2023, 9:48 AMEdvard Lindelöf
06/13/2023, 9:55 AMEdvard Lindelöf
06/13/2023, 9:58 AMowen
06/13/2023, 5:43 PMdef handle_output(self, context, obj):
directory = "foo/{context.asset_key}"
store_obj_in(obj, directory + "/{current_date}")
def load_input(self, context):
directory = "foo/{context.asset_key}"
path = get_newest_file_in_firectory(directory)
return load_obj_from(directory + path)
this ends up being fairly similar to the last_partition_mapping scheme logically, but keeps the historical information separate from the asset's the logicEdvard Lindelöf
06/14/2023, 7:21 AMEdvard Lindelöf
06/14/2023, 7:36 AM