How to disable Delta Lake log compaction (.compacted.json files)

mohit7
New Contributor

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?