Interview practice question
Debugging a SQL compilation error
Data Engineering · dbt · Beginner
A dbt model fails with a SQL syntax error, but the model file looks correct. How do you debug it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Open the compiled SQL in the target folder.
- Jinja or a macro may produce unexpected SQL.
- Run the compiled SQL directly in the warehouse to find the line.
- Check variables or configs that change output per target.
- Use dbt compile --select model for a quick check.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.