Код: Выделить всё
if context.has_partition_key and filter_datetime_on:
context.log.info(f"Loading partition key: {context.partition_key}")
start, end = context.asset_partitions_time_window
start = start - timedelta(days=1)
end = end + timedelta(days=1)
context.log.info(f"Filtering time {start}-{end}")
Код: Выделить всё
"df": AssetIn(
input_manager_key="delta",
metadata={"filter_datetime_on": "time"},
key=AssetKey(["silver", "schema", "df"]),
),
Код: Выделить всё
dagster._check.CheckError: Failure condition: Tried to access asset_partitions_time_window, but the asset is not partitioned.
Подробнее здесь: https://stackoverflow.com/questions/789 ... tions-time