Chris Roth
04/14/2023, 1:33 PM@asset(...)
def foo() -> pd.DataFrame:
if asset_exists():
data = load_data()
new_data = fetch_new_data_since(data.last_time)
data = data.append(new_data)
else:
data = fetch_all_data()
return data
Does anyone have any suggestions on how to approach this type of problem?Vinnie
04/14/2023, 1:43 PMDynamicPartitions
. You could then aggregate everything into an unpartitioned downstream asset that runs whatever further calculations you might needChris Roth
04/14/2023, 1:47 PMVinnie
04/14/2023, 1:50 PMChris Roth
04/14/2023, 1:53 PMVinnie
04/14/2023, 1:54 PMChris Roth
04/14/2023, 1:55 PMVinnie
04/14/2023, 1:56 PM