Interview practice question
Model ran before its input was ready
Data Engineering · dbt · Intermediate
A model sometimes runs before the table it reads is refreshed, giving stale results. What is wrong?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- The model reads the table by a hard-coded name, so dbt doesn't know the dependency.
- Replace with ref() or source().
- If the input is built outside dbt, declare it as a source and use freshness.
- Use the orchestrator to sequence external jobs.
- Check lineage graph for missing edges.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.