cancel
Showing results for 
Search instead for 
Did you mean: 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 

Retention for hive_metastore tables

mattiags
New Contributor II

Hi

I have a notebook that creates tables in the hive_metastore with the following code:

 

df.write.format("delta").mode("overwrite").saveAsTable(output_table_name)
 
Which is the retantion for the data saved in the hive metastore? is there any configuration for keeping the data for like 5 years?
1 ACCEPTED SOLUTION

Accepted Solutions

Stefan-Koch
Valued Contributor II

Hi mattiags

As long as you do not delete the data via notebook or in the data lake, it will not be deleted in any other way. This means that there is no retention time in this sense, or conversely, it is infinite until you deliberately delete the data.

View solution in original post

1 REPLY 1

Stefan-Koch
Valued Contributor II

Hi mattiags

As long as you do not delete the data via notebook or in the data lake, it will not be deleted in any other way. This means that there is no retention time in this sense, or conversely, it is infinite until you deliberately delete the data.

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now