Interview practice question
Incremental model creating duplicates
Data Engineering · dbt · Intermediate
An incremental model has started producing duplicate rows. What are the likely causes?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- No unique_key set, so append is used and reprocessed rows are inserted again.
- The unique_key isn't truly unique in the source batch.
- Source has multiple versions of a row in one run.
- Lookback windows without merge cause reinserts.
- Fix by deduplicating in the model and setting a correct unique_key.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.