Jinja and Macros
What is Jinja?
Example: Basic Jinja
{% set threshold = 100 %}
select *
from orders
where total_amount > {{ threshold }}What is a Macro?
Example: Defining and Using a Macro
Define a macro
Use the macro in a model
Jinja Blocks Overview
Syntax
Purpose
Jinja with Environment Variables
Debugging Jinja and Macros
Best Practices
Last updated
Was this helpful?

