Skip to content

Commit bf9427a

Browse files
committed
refactor: rename snapshot expiration methods for clarity and consistency
1 parent 64ba8f0 commit bf9427a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pyiceberg/table/update/snapshot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ def _get_protected_snapshot_ids(self) -> Set[int]:
952952

953953
return protected_ids
954954

955-
def expire_snapshot_by_id(self, snapshot_id: int) -> ExpireSnapshots:
955+
def by_id(self, snapshot_id: int) -> ExpireSnapshots:
956956
"""
957957
Expire a snapshot by its ID.
958958
@@ -973,7 +973,7 @@ def expire_snapshot_by_id(self, snapshot_id: int) -> ExpireSnapshots:
973973

974974
return self
975975

976-
def expire_snapshots_by_ids(self, snapshot_ids: List[int]) -> "ExpireSnapshots":
976+
def by_ids(self, snapshot_ids: List[int]) -> "ExpireSnapshots":
977977
"""
978978
Expire multiple snapshots by their IDs.
979979
@@ -988,7 +988,7 @@ def expire_snapshots_by_ids(self, snapshot_ids: List[int]) -> "ExpireSnapshots":
988988
self.expire_snapshot_by_id(snapshot_id)
989989
return self
990990

991-
def expire_snapshots_older_than(self, timestamp_ms: int) -> "ExpireSnapshots":
991+
def older_than(self, timestamp_ms: int) -> "ExpireSnapshots":
992992
"""
993993
Expire all unprotected snapshots with a timestamp older than a given value.
994994

0 commit comments

Comments
 (0)