Hey Everyone.
I have dbt Jobs which is having an Variable (String) which has the Date. Everytime we run the job either we modify the date or update in project YML File. Since we have completed the history load now we would need to automate this by passing the Curernt date -1 and covert into string. Example we expect “2023-08-01”.
Example
dbt build --vars ‘{key: value, thru_date: 2023-08-04}’ --select ++
This thru_date Variables we have been using in Modes to filter the data set in source. Now how we convert the Hardcode values to Dymically with sysdate-1 ?