Backfills and reprocessing

Running a pipeline for the past instead of the present, and why that's a different, riskier operation.

What a backfill is

A normal scheduled run processes one , usually the most recent one, as soon as its upstream dependencies are ready. A runs the same task definition for one or more past logical periods, either because they were never run (a new pipeline, a gap from an outage) or because the source data for them changed and needs to be reprocessed.

The task code doesn't change between a scheduled run and a backfill; what changes is the logical date (or date range) passed in, and the volume of work triggered at once. That's exactly why task design matters here: a backfill is, by definition, a bunch of retries of already-completed logical periods.

Partition-based backfills vs full reprocessing

A partition-based backfill re-runs the pipeline for a bounded set of logical periods, for example the 12 days affected by an upstream outage, and only touches those partitions. This is the common case and is relatively cheap: the blast radius is known in advance.

re-runs the entire history of the pipeline, typically because the transformation logic itself changed in a way that affects every past row, not just recent ones (a bug fix in a join, a new business rule applied retroactively). This is much more expensive and has to be scoped deliberately, since it touches every downstream consumer of that dataset, not just the ones that care about recent data.

Operational risks

Overloading the warehouse or cluster is the first risk: a backfill over 90 days submits 90 (or more, if downstream tasks fan out) jobs roughly at once if nothing throttles . That competes with the normal scheduled runs for the same compute and can starve today's pipeline of resources it needs to finish on time.

Double-counting if idempotency is broken is the second risk, and it's amplified here: a task that quietly breaks idempotency might only ever be retried once or twice in normal operation, but a backfill retries it dozens or hundreds of times in a row, turning a rare bug into guaranteed, large-scale duplication.

Cost / gotcha

Backfilling into a table whose schema has since evolved is the risk that's easy to miss: if a column was added, renamed, or had its semantics changed after the period being backfilled, the backfill either fails outright or silently writes data under the new schema's assumptions, producing rows that look valid but don't mean what the rest of the table thinks they mean.

Making backfills safe in practice

Most orchestrators let you cap backfill concurrency independently of normal scheduling concurrency, so a large backfill can be throttled to a handful of parallel tasks instead of flooding the cluster. Pair that with the idempotent delete-then-insert pattern from the DAG topic, and a backfill becomes a safe, if slow, batch of normal runs rather than a special, risky operation.

Worked example

Repair one missing date and preserve its neighbors

Only the November 2 partition is missing. A date-scoped overwrite replaces that day using its replayable source input.

Logical dateSource rowsTarget beforeTarget after
2026-11-01100100100
2026-11-021200120
2026-11-03110110110

What to notice: Rerunning November 2 should leave 120 rows, not append another 120. Reconcile keys and totals as well as counts, and cap concurrent backfill runs.

Practice / self-test

1. What's the core difference between a scheduled run and a backfill, given the same task code?

Reveal answer

The logical date (or range of dates) passed to the task, and the fact that a backfill usually submits many logical periods at once instead of one. The task implementation is identical; only the input period and volume differ.

2. When would you choose a partition-based backfill over full reprocessing?

Reveal answer

When only a bounded, known set of logical periods is affected, such as a 12-day outage window, and the transformation logic itself hasn't changed. Full reprocessing is reserved for logic changes that affect correctness across the entire history.

3. Why does a backfill expose idempotency bugs more severely than normal operation?

Reveal answer

Normal operation might retry a given task once in a while. A backfill retries the same non-idempotent logic across dozens or hundreds of logical periods in quick succession, turning an occasional duplicate into systematic, large-scale duplication.

4. What operational control limits a backfill's impact on cluster or warehouse load?

Reveal answer

Capping backfill concurrency (the number of logical periods processed in parallel) independently from normal scheduling concurrency, so the backfill doesn't compete for all available compute at once with the pipelines currently running on schedule.

5. Why can backfilling old data into a table with an evolved schema produce incorrect results even if the backfill 'succeeds'?

Reveal answer

If a column's meaning changed after the backfilled period (renamed, added, or had its semantics redefined), the backfill writes rows that are schema-valid but don't carry the meaning the rest of the table assumes for that column, producing data that is structurally fine but semantically wrong.