Skip to content

Commit 38d8b1e

Browse files
committed
handler to_snapshot_id is None
1 parent 0066b3b commit 38d8b1e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pyiceberg/table/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1994,6 +1994,8 @@ def to_snapshot(self: S, to_snapshot_id: int) -> S:
19941994
Returns:
19951995
this for method chaining
19961996
"""
1997+
if to_snapshot_id is None:
1998+
return self
19971999
return self.update(to_snapshot_id=to_snapshot_id)
19982000

19992001
def from_snapshot_exclusive(self: S, from_snapshot_id: int) -> S:

0 commit comments

Comments
 (0)