cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Shallow copy in databricks

_deepak_
New Contributor II

Hi, I am new to Databricks. I need to setup a non-prod environment for which I need data of prod to be cloned in non-prod. Explored some and got to know about shallow copy. Is it possible to do shallow copy across environments? or Is it possible to do shallow clonning across different databricks instances?

1 ACCEPTED SOLUTION

Accepted Solutions

daniel_sahal
Esteemed Contributor

@deepak prasad​ 

I'm not sure it's possible to do that. Even with Unity Catalog enabled, you cannot use shallow clone.

You can do two things here:

Without UC - just simply recreate an empty table in your non-prod environment and do SELECT * from prod storage,

With UC - make sure that two workspaces are in the same metastore and you can either create views based on prod data or do a deep clone from prod to non-prod

View solution in original post

1 REPLY 1

daniel_sahal
Esteemed Contributor

@deepak prasad​ 

I'm not sure it's possible to do that. Even with Unity Catalog enabled, you cannot use shallow clone.

You can do two things here:

Without UC - just simply recreate an empty table in your non-prod environment and do SELECT * from prod storage,

With UC - make sure that two workspaces are in the same metastore and you can either create views based on prod data or do a deep clone from prod to non-prod

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.