I need to load historic data in DBT into my type 2 SCD dims. I have parameterized the query. How can I load the history without manually changing the parameter in dbt for each day. I need to load 5 years of historic data.
Example; I can run the parameter dbt run --vars '{"run_date": "1/30/2022"}' to run the data for one day. Is there a way where I can create a loop to cycle thru the run dates and load one day at a time of the history?