In this article
Resolve the actual upstream windows for a downstream partition before interpreting an offset as a count of source partitions.
Begin with the report’s intended evidence window
A daily report depends on hourly extraction batches. Another report needs a lookback period as well as the current period. Dagster’s partition-dependency guide maps time-window partitions through intersecting windows by default. A daily consumer can therefore depend on multiple hourly partitions. State the evidence interval first, so mapping is reviewed against the report’s actual temporal requirement rather than a guessed number of files.
Distinguish identical labels from overlapping intervals
With the same partition definition, corresponding partitions normally align directly. Different time granularities use their window relationships. The partitions API describes both finer and coarser upstream cases. A daily source can supply an hourly downstream partition, while an hourly source can supply several dependencies for a daily partition. A text prefix shared by their keys is not the definition of that relationship.
Read offsets in downstream units
The API specifies that when partition definitions differ, start and end offsets use the downstream definition’s units. An offset around a daily report should therefore not casually be interpreted as a count of hourly source batches. Resolve the resulting upstream window before approving the lookback. The same numeric offset can describe a different duration after changing the downstream partition scheme, even when the upstream data remains hourly.
Declare the relationship where dependency is defined
The assets reference supports explicit dependencies and partition mappings. The guide shows the mapping through AssetDep or managed input definitions. Keep the declaration consistent with the actual storage read. A function that reads a wider historical interval than its declared dependency can undermine the meaning of lineage and freshness decisions. Progressive reading helps follow that declaration into the code that resolves source records.
Examine the earliest available partitions
A lookback can request upstream windows before the source’s defined start. The API offers an explicit nonexistent-upstream policy, with a default that rejects missing defined coverage. Choosing permissive handling changes which source keys are available; it does not manufacture absent data. Tool observations should preserve the resolved windows and missing coverage. A report can then explain a shortened initial history instead of treating the absence of an orchestration error as proof that the full requested lookback was read.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.