We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52d810e commit 621b43fCopy full SHA for 621b43f
2 files changed
pyiceberg/table/update/snapshot.py
@@ -924,9 +924,12 @@ class ExpireSnapshots(UpdateTableMetadata["ExpireSnapshots"]):
924
Pending changes are applied on commit.
925
"""
926
927
- _snapshot_ids_to_expire: Set[int] = set()
928
- _updates: Tuple[TableUpdate, ...] = ()
929
- _requirements: Tuple[TableRequirement, ...] = ()
+ def __init__(self, transaction: Transaction) -> None:
+ super().__init__(transaction)
+ # Initialize instance-level attributes to avoid sharing state between instances
930
+ self._snapshot_ids_to_expire: Set[int] = set()
931
+ self._updates: Tuple[TableUpdate, ...] = ()
932
+ self._requirements: Tuple[TableRequirement, ...] = ()
933
934
def _commit(self) -> UpdatesAndRequirements:
935
0 commit comments