﻿# Dagster partition offsets use downstream time units

Dagster TimeWindowPartitionMapping uses intersecting windows by default; offsets between different granularities are expressed in downstream units, affecting source coverage.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/guide-dagster-time-window-offset-unit/
Language: en

## 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](https://dagster.io/docs/guides/build/partitions-and-backfills/defining-dependencies-between-partitioned-assets) 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](https://dagster.io/docs/api/dagster/partitions) 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](https://dagster.io/docs/api/dagster/assets) 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](/journal/learn-codex-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](/journal/learn-codex-tool-observation/) 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.
