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.