Skip to content

Commit c0e5c40

Browse files
Document partitions() raising when the table has no snapshots
entries() already documents this ValueError from _get_snapshot(); partitions() uses the same helper.
1 parent 2f15ad5 commit c0e5c40

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎pyiceberg/table/inspect.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,8 @@ def partitions(
356356
``last_updated_at``, and ``last_updated_snapshot_id``.
357357
358358
Raises:
359-
ValueError: If the specified snapshot does not exist.
359+
ValueError: If the specified snapshot does not exist, or if the
360+
table has no snapshots and snapshot_id is None.
360361
"""
361362
import pyarrow as pa
362363

0 commit comments

Comments
 (0)