-
Notifications
You must be signed in to change notification settings - Fork 141
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When a dbt model is switched from a materialized view to a view and redeployed, the old materialized view is not dropped. Instead, only the MV’s target table is removed. This leaves the MV object in place, causing problems when inserting data, such as:
Failed to insert data into ClickHouse (will be retried). Missing materialized view data is possible due to ClickHouse deduplication: ClickHouse Error Code 48: Method write is not supported by storage View.
Steps to reproduce
- Create an MV.
- Redeploy it as a view.
- The MV does not get dropped, and the error message starts coming in.
Expected behaviour
Both the target table and the MV are supposed to be removed.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working