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:ย 

Creating a test schema - what is the best practice?

Asterol
New Contributor III
  • Hey, 

I've created a schema with few tables with historical data (prod), now I would like to have a Dev/testing environment with exactly the same data.

What do you recommend? CTAS? Shallow clone? Deep clone? I wonder if shallow clone would be sufficient, what is your experience?

1 REPLY 1

Tharun-Kumar
Databricks Employee
Databricks Employee

@Asterol 

If you would like to have the same data for your Dev/testing environment, I would recommend using Deep Clone. Deep clone copies the metadata and creates an independent copy of the table data. 

Shallow clone only copies the metadata and will have a pointer to your production data. Shallow clone only helps for short-lived use cases. 

If you end goal is to create a Dev/testing/production environment, Deep Clone is the way forward. This would help you in using and maintaining them independently.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group