Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK] Set autoCompact.modifiedPartitionsOnly.enabled to false as default #4109

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mwc360
Copy link
Contributor

@mwc360 mwc360 commented Jan 31, 2025

When True is the default, the behavior of AC doesn't align with the DBR implementation and results in too frequent compactions being run as minNumFiles isn't respected.

Example of odd result of AC in this issue: #4045
and resolves the odd behavior noted here: #4043

Which Delta project/connector is this regarding?

  • Spark
  • Standalone
  • Flink
  • Kernel
  • Other (fill in here)

Description

Aligns behavior of AC with Databricks DBR implementation where it appears this is not enabled (also not exposed as a config option).

How was this patch tested?

Ran 200 iterations of merging data into a table to confirm the expected behavior of AC in managing small files while respecting the minNumFiles threshold.

Does this PR introduce any user-facing changes?

No as this session config isn't documented in the Delta.io docs

When True is the default, the behavior of AC doesn't align with the DBR implementation and results in too frequent compactions being run as minNumFiles isn't respected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant