We are using dbt in our project, and we found it's not easy to track "orphan" tables. These are tables or views created by dbt for which there is no matching current model.
These came about when a .sql file got renamed, or a view got converted to a table, etc...
Is there a way to find all of these orphan tables and views? Or at least a way to clear them out.
Ideas:
- Use pre or post hooks to maintain a table in the database with all views/tables created by
dbt - Schemas?
Note:
- We are using MSSQL if it matters