Skip to content

Commit

Permalink
handler to_snapshot_id is None
Browse files Browse the repository at this point in the history
  • Loading branch information
hililiwei committed Jul 2, 2024
1 parent 0066b3b commit 38d8b1e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyiceberg/table/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1994,6 +1994,8 @@ def to_snapshot(self: S, to_snapshot_id: int) -> S:
Returns:
this for method chaining
"""
if to_snapshot_id is None:
return self
return self.update(to_snapshot_id=to_snapshot_id)

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

0 comments on commit 38d8b1e

Please sign in to comment.