cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to migrate Git repos with DLT configurations

PrebenOlsen
New Contributor III

Hi!
I want to migrate all my databricks related code from one github repo to another. I knew this wouldn't be straight forward. When I copy my code for one DLT, I get the error

org.apache.spark.sql.catalyst.ExtendedAnalysisException: Table 'vessel_battery' is already managed by pipeline <pipeline ID>. A table can only be owned by one pipeline. Concurrent pipeline operations such as maintenance and full refresh will conflict with each other. Please rename the table 'vessel_battery' to proceed.

The tables are multi-terrabytes of data and should not be removed/overwritten. Is it possible to transfer the ownership of these tables? All DLT configs are setup using Databricks Asset Bundles. 

2 REPLIES 2

AmanSehgal
Honored Contributor III

Would cloning the tables help your cause? You could probably try shallow or deep cloning as per your requirement.

PrebenOlsen
New Contributor III

Does cloning take considerably less time then recreating the tables?

Can I resume append operations to a cloned table?

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!