Skip to content

Commit

Permalink
Fix python unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
Blajda authored and wjones127 committed Jul 27, 2023
1 parent 0edaaa7 commit fa39e2d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions python/deltalake/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,17 +414,13 @@ def vacuum(
retention_hours: Optional[int] = None,
dry_run: bool = True,
enforce_retention_duration: bool = True,
max_concurrent_requests: int = 10,
) -> List[str]:
"""
Run the Vacuum command on the Delta Table: list and delete files no longer referenced by the Delta table and are older than the retention threshold.
:param retention_hours: the retention threshold in hours, if none then the value from `configuration.deletedFileRetentionDuration` is used or default of 1 week otherwise.
:param dry_run: when activated, list only the files, delete otherwise
:param enforce_retention_duration: when disabled, accepts retention hours smaller than the value from `configuration.deletedFileRetentionDuration`.
:param max_concurrent_requests: the maximum number of concurrent requests to send to the backend.
Increasing this number may improve performance of vacuuming large tables, however it might also
increase the risk of hitting rate limits.
:return: the list of files no longer referenced by the Delta Table and are older than the retention threshold.
"""
if retention_hours:
Expand All @@ -435,7 +431,6 @@ def vacuum(
dry_run,
retention_hours,
enforce_retention_duration,
max_concurrent_requests,
)

@property
Expand Down

0 comments on commit fa39e2d

Please sign in to comment.