Skip to content
Gold 5 min read · Incremental 3 practice problems ↓

Late data and idempotent incrementals

Lookback windows, re-runs that give the same answer, schema changes and when to full refresh.

Pipelines in production · dbt · Gold · Production incrementals, lesson 2 of 2

Read first: Incremental models (skip if you know it)

In plain words first

Collecting exam papers, a teacher who only accepts papers dated after the last one they marked will miss the student who wrote theirs on Monday but handed it in on Friday.

The fix is a lookback: re-check the last few days every run, not just what is newer than the newest row.

Unlock the full lesson

You have read the free part. The rest of this advanced lesson:

  • The row that never arrives
  • Fix 1: filter on arrival time
  • Fix 2: a lookback window
  • Idempotent incremental models
  • When columns change: on_schema_change
  • Full refreshes
  • Common mistakes
  • Key takeaways
  • Interview prep with 3 follow-up questions
  • Check yourself: 3 questions

Unlock it with the Complete pass (every advanced problem and lesson) or on its own.

Practise this

Problems that use this, graded on hidden tests

Keep going

Up next · new module: CI and governance · 5 min read
Slim CI, state and defer
Build and test only what a pull request changed with state:modified+, --defer and dbt clone.

Related lessons

Previous: Incremental strategies

Primary sources: Incremental models · on_schema_change · full_refresh config