Skip to content

Commit 36b8d08

Browse files
committed
handler to_snapshot_id is None
1 parent 85ca48c commit 36b8d08

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
@@ -1872,6 +1872,8 @@ def to_snapshot(self: S, to_snapshot_id: int) -> S:
18721872
Returns:
18731873
this for method chaining
18741874
"""
1875+
if to_snapshot_id is None:
1876+
return self
18751877
return self.update(to_snapshot_id=to_snapshot_id)
18761878

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

0 commit comments

Comments
 (0)