I want to create a macro that runs monthly and removes older intermediate data. So I want to target any of my models that starts with int_ and delete data older than 6 months. What’s the best way to implement this?
Rather than delete data, could you add a time constraint to your materialization? date(event_timestamp) > DATEADD(month2, 6URRENT_DATE())
Note: @Troy Carpenter
originally posted this reply in Slack. It might not have transferred perfectly.