Skip to content

docs: explain how to configure deletedFileRetentionDuration - #4832

Merged
ethan-tyler merged 2 commits into
delta-io:mainfrom
Shahzeb-DataEngineer:docs/deleted-file-retention-duration
Oct 8, 2026
Merged

ethan-tyler merged 2 commits into
delta-io:mainfrom
Shahzeb-DataEngineer:docs/deleted-file-retention-duration

Conversation

@Shahzeb-DataEngineer

Copy link
Copy Markdown
Contributor

Description

Documents how to configure the delta.deletedFileRetentionDuration table property, which controls the vacuum retention window.

  • Adds retention-window configuration docs to the Vacuuming section of docs/usage/managing-tables.md, with examples for setting it at table creation (write_deltalake(..., configuration=...)) and on existing tables (dt.alter.set_table_properties(...)), plus a note on the 7-day minimum.
  • Clarifies the retention_hours parameter in the DeltaTable.vacuum() docstring to point at the table property.

Related Issue(s)

Copilot AI balanced review requested due to automatic review settings October 7, 2026 19:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot added documentation Improvements or additions to documentation binding/python Issues for the Python package labels Oct 7, 2026
@codecov

codecov Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.94%. Comparing base (054ac63) to head (b24283d).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4832      +/-   ##
==========================================
- Coverage   81.94%   81.94%   -0.01%     
==========================================
  Files         200      200              
  Lines       74476    74476              
  Branches    74476    74476              
==========================================
- Hits        61029    61027       -2     
- Misses       9867     9870       +3     
+ Partials     3580     3579       -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread docs/usage/managing-tables.md Resolved
Replace the blanket 7-day recommendation with guidance matching the
official Delta Lake table properties docs: the retention window
should be longer than the longest-running job or streaming query
against the table, since concurrent readers or writers may still
reference files that VACUUM would then delete.

Signed-off-by: Shahzeb Ali <[email protected]>
@ethan-tyler
ethan-tyler merged commit e5a0881 into delta-io:main Oct 8, 2026
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

binding/python Issues for the Python package documentation Improvements or additions to documentation

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Document how use "deletedFileRetentionDuration"

4 participants