{"record":{"id":"858b7f81904b01d7","repo":"pola-rs/polars","slug":"iceberg-snapshot-id-not-found-snapshot-id","errorCode":null,"errorMessage":"iceberg snapshot ID not found: {snapshot_id}","messagePattern":"iceberg snapshot ID not found: (.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"py-polars/src/polars/io/iceberg/_dataset.py","lineNumber":313,"sourceCode":"        )\n\n        tbl = self.table.get()\n\n        if verbose:\n            eprint(\n                \"IcebergScanResolver: to_dataset_scan(): \"\n                f\"tbl.metadata.current_snapshot_id: {tbl.metadata.current_snapshot_id}\"\n            )\n\n        snapshot_id = self.snapshot_id\n        schema_id = None\n\n        if snapshot_id is not None:\n            snapshot = tbl.snapshot_by_id(snapshot_id)\n\n            if snapshot is None:\n                msg = f\"iceberg snapshot ID not found: {snapshot_id}\"\n                raise ValueError(msg)\n\n            schema_id = snapshot.schema_id\n\n            if schema_id is None:\n                msg = (\n                    f\"IcebergScanResolver: requested snapshot {snapshot_id} \"\n                    \"did not contain a schema ID\"\n                )\n                raise ValueError(msg)\n\n            iceberg_schema = tbl.schemas()[schema_id]\n            snapshot_id_key = f\"{snapshot.snapshot_id}\"\n        else:\n            iceberg_schema = tbl.schema()\n            schema_id = tbl.metadata.current_schema_id\n\n            snapshot_id_key = (\n                f\"{v.snapshot_id}\" if (v := tbl.current_snapshot()) is not None else \"\"","sourceCodeStart":295,"sourceCodeEnd":331,"githubUrl":"https://github.com/pola-rs/polars/blob/df599052daf96e7a9cc30a3b0c6bd25d6947e3c0/py-polars/src/polars/io/iceberg/_dataset.py#L295-L331","documentation":"Error \"iceberg snapshot ID not found: {snapshot_id}\" thrown in pola-rs/polars.","triggerScenarios":"Thrown at py-polars/src/polars/io/iceberg/_dataset.py:313 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"df599052daf96e7a9cc30a3b0c6bd25d6947e3c0","analyzedAt":"2026-08-16T12:10:03.978Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}