Skip to content

Commit 0335957

Browse files
committed
make orphaned_files private
1 parent 34d10b9 commit 0335957

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pyiceberg/table/maintenance.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __init__(self, tbl: Table) -> None:
4242
except ModuleNotFoundError as e:
4343
raise ModuleNotFoundError("For metadata operations PyArrow needs to be installed") from e
4444

45-
def orphaned_files(self, location: str, older_than: timedelta = timedelta(days=3)) -> Set[str]:
45+
def _orphaned_files(self, location: str, older_than: timedelta = timedelta(days=3)) -> Set[str]:
4646
"""Get all files which are not referenced in any metadata files of an Iceberg table and can thus be considered "orphaned".
4747
4848
Args:
@@ -86,7 +86,7 @@ def remove_orphaned_files(self, older_than: timedelta = timedelta(days=3), dry_r
8686
dry_run: If True, only log the files that would be deleted. Defaults to False.
8787
"""
8888
location = self.tbl.location()
89-
orphaned_files = self.orphaned_files(location, older_than)
89+
orphaned_files = self._orphaned_files(location, older_than)
9090
logger.info(f"Found {len(orphaned_files)} orphaned files at {location}!")
9191
deleted_files = set()
9292
failed_to_delete_files = set()

0 commit comments

Comments
 (0)