cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

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

User16783854657
New Contributor III

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

User16783854657
New Contributor III

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.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.