How to disable Delta Lake log compaction (.compacted.json files)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2026 11:38 AM
Hi,
How can we disable the automatic creation of .compacted.json files in Delta Lake _delta_log folders?
Recently, some of our log files less than 30 days old were removed due to this compaction, affecting our ability to time travel.
We found spark.databricks.delta.deltaLog.minorCompaction.useForReads for the read side, but need to disable the write side.
Is there a Spark config or table property to disable this?