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

Deep Clone

acegerace
New Contributor II

Will a deep clone of a table also clone the table's tags?

1 ACCEPTED SOLUTION

Accepted Solutions

brockb
Databricks Employee
Databricks Employee

Hi @acegerace ,

By default, table Tags are not included in the cloned metadata. This can be observed by cloning the table and confirming in the `information_schema.table_tags` system table.

If this is not the desired behavior, the tags could be set on the cloned table using the Alter Table statement such as: `

`ALTER TABLE clone_table SET TAGS ('new' = 'value')`.
 
Thank you.

View solution in original post

1 REPLY 1

brockb
Databricks Employee
Databricks Employee

Hi @acegerace ,

By default, table Tags are not included in the cloned metadata. This can be observed by cloning the table and confirming in the `information_schema.table_tags` system table.

If this is not the desired behavior, the tags could be set on the cloned table using the Alter Table statement such as: `

`ALTER TABLE clone_table SET TAGS ('new' = 'value')`.
 
Thank you.

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