Skip to content

[Docs] Clarify vacuum() uses delta.deletedFileRetentionDuration - #8007

Open
AnudeepKonaboina wants to merge 1 commit into
delta-io:masterfrom
AnudeepKonaboina:docs/issue-7980-vacuum-retention
Open

AnudeepKonaboina wants to merge 1 commit into
delta-io:masterfrom
AnudeepKonaboina:docs/issue-7980-vacuum-retention

Conversation

@AnudeepKonaboina

Copy link
Copy Markdown
Collaborator

Summary

  • DeltaTable.vacuum() with no retentionHours argument uses delta.deletedFileRetentionDuration, not a hardcoded 7-day window.
  • Update the Python and Scala API docs so they match VacuumCommand.gc, which falls back to snapshot.minFileRetentionTimestamp when retention hours are omitted.
  • The 7-day / 168-hour figure is only the default of that table property when it is unset.

Fixes #7980

Test plan

  • Confirmed on master that vacuum() with retentionHours = None uses DeltaConfigs.TOMBSTONE_RETENTION (delta.deletedFileRetentionDuration)
  • Review Python/Scala API docs for wording

The no-argument vacuum() API was documented as a hardcoded 7-day default.
It actually uses the table property, which itself defaults to 7 days when unset.

Signed-off-by: AnudeepKonaboina <krantianudeep@gmail.com>
@AnudeepKonaboina
AnudeepKonaboina force-pushed the docs/issue-7980-vacuum-retention branch from 5c28bd1 to 06cd743 Compare December 5, 2026 02:35

This branch has not been deployed

No deployments
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.

Clarification Request: Vacuum's Default Retention Period

2 participants