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: 

Does running OPTIMIZE on a delta table destroy the transaction history of table?

cgrant
Databricks Employee
Databricks Employee

If I run OPTIMIZE on a Delta Lake table, will it prevent me from time travelling to a version before OPTIMIZE was run?

1 REPLY 1

cgrant
Databricks Employee
Databricks Employee

No, you will still be able to time travel to versions previous to the OPTIMIZE command.

OPTIMIZE is just another transaction like MERGE, UPDATE, etc.

Check out these docs to learn more about retention periods and the VACUUM command.

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