When a partitioned asset reads another, Dagster decides which upstream partitions to load.
- Same partitions on both sides: each downstream partition reads the same key (identity).
- An unpartitioned asset reading a partitioned one reads all of them, as a dictionary from partition key to value.
- A daily asset reading daily data with
dg.TimeWindowPartitionMapping(start_offset=-1) reads its own day and the day before, also as a dictionary: rolling windows without loops.
Set a mapping on the input: ins={"daily_shipments": dg.AssetIn(partition_mapping=...)}, or on a dependency with dg.AssetDep(asset, partition_mapping=...).
Offsets that reach before the first partition are an error, because that data does not exist. When the first window may be short, pass allow_nonexistent_upstream_partitions=True and handle a smaller dictionary.
Each partition reads its own day and the previous one.