Does running OPTIMIZE on a delta table destroy the transaction history of table?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2021 03:08 PM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2021 03:34 PM
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.

