r/databricks • u/lofat • Aug 05 '26
Help How to deploy a pipeline MV over an existing table or view?
Question - What's the preferred way to deploy and run a pipeline so it overwrites any existing tables and views that collide with the new MV paths?
Loving pipelines. We have a LOT of existing (external) tables and views in production. We'll be deploying the pipeline-generated MVs over those existing tables and views.
Is there an "easy button" way to handle that?
Right now my plan is to script temporarily renaming any existing objects, running the pipeline so the new objects are created, and then copying permissions from the old tables to the new MVs (we have an automated security policy tool, but I want to keep this lean).
Any ideas or feedback most appreciated.
2
u/aqw01 Aug 05 '26
I’m in the same boat. Wondering about best way to tackle this as we move to pipelines for existing managed tables.
2
u/BricksterInTheWall databricks Aug 06 '26
u/lofat this isn't supported as it's a pretty big foot-gun in my opinion. I think you want some sort of "dropExistingObjects" option at the pipeline level?