pola-rs/polars · error · ValueError
iceberg snapshot ID not found: {snapshot_id}
Error message
iceberg snapshot ID not found: {snapshot_id} What it means
Error "iceberg snapshot ID not found: {snapshot_id}" thrown in pola-rs/polars.
Source
Thrown at py-polars/src/polars/io/iceberg/_dataset.py:313
)
tbl = self.table.get()
if verbose:
eprint(
"IcebergScanResolver: to_dataset_scan(): "
f"tbl.metadata.current_snapshot_id: {tbl.metadata.current_snapshot_id}"
)
snapshot_id = self.snapshot_id
schema_id = None
if snapshot_id is not None:
snapshot = tbl.snapshot_by_id(snapshot_id)
if snapshot is None:
msg = f"iceberg snapshot ID not found: {snapshot_id}"
raise ValueError(msg)
schema_id = snapshot.schema_id
if schema_id is None:
msg = (
f"IcebergScanResolver: requested snapshot {snapshot_id} "
"did not contain a schema ID"
)
raise ValueError(msg)
iceberg_schema = tbl.schemas()[schema_id]
snapshot_id_key = f"{snapshot.snapshot_id}"
else:
iceberg_schema = tbl.schema()
schema_id = tbl.metadata.current_schema_id
snapshot_id_key = (
f"{v.snapshot_id}" if (v := tbl.current_snapshot()) is not None else ""View on GitHub (pinned to df599052da)
When it happens
Trigger: Thrown at py-polars/src/polars/io/iceberg/_dataset.py:313 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of pola-rs/polars@df599052da (2026-08-16).
Data as JSON: /api/errors/858b7f81904b01d7.
Report an issue: GitHub.