Explain it in 60 seconds
Jinja in dbt
Data Engineering · dbt · Beginner
How is Jinja used in dbt? Give some practical examples.
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Jinja is a templating language that dbt runs before sending SQL to the warehouse.
- {{ }} prints expressions, like ref() and source().
- {% %} runs logic like if and for loops.
- Used for dynamic SQL, like generating pivot columns from a list.
- Overusing Jinja makes models hard to read, so keep it simple.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.