SpinTheMic
Pro

Explain it in 60 seconds

Handling hard deletes in snapshots

Data Engineering · dbt · Experienced

How do dbt snapshots handle records deleted in the source?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • By default, snapshots ignore source deletes, the record just stays current.
  • The hard_deletes config can be ignore, invalidate or new_record.
  • invalidate closes the record by setting dbt_valid_to.
  • new_record adds a row flagged as deleted, keeping a clear history.
  • Older projects used invalidate_hard_deletes: true.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics