I am trying to set a date variable within a dbt model to be the date 7 days ago. The model will run against a Redshift database. I have done the following to set the variable, however I get the error DATE_ADD is not defined:
{%- set start_date = TRUNC(DATE_ADD(day, -7, CURRENT_DATE)) -%}
What is the correct way to set the variable.