You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
rachellougee
changed the title
Cleaning up removed models from qa and production schema
Automate cleaning up the removed models from qa and production schema
Jan 20, 2023
rachellougee
changed the title
Automate cleaning up the removed models from qa and production schema
Automate cleaning up the removed or renamed models
Jan 25, 2023
Looked at this a little bit, the proposed solutions to write a macro in this post are convoluted and require proper permission to run dbt run-operation delete_outdated_tables --args "{schema: [SCHEMA]}" command on production and qa to invoke the macro.
Since dbt suggests manually dropping the related staled model it in their doc, I will leave it the way it is. If we end up having a lot of renamed models, we can revisit it
User Story
When a model is deleted or renamed from code, dbt clean doesn't automatically remove the old models from QA and Production schema so we have to manually delete it. Tobias shared https://discourse.getdbt.com/t/faq-cleaning-up-removed-models-from-your-production-schema/113/11 that we might consider writing a macro to handle the deleted models
automatically
The text was updated successfully, but these errors were encountered: