dbt - Jinja in dbt
Identify the error in this dbt snippet:
{% set total = 0 %}
{% for i in range(3) %}
{% set total = total + i %}
{% endfor %}
{{ total }}