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.

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