{"record":{"id":"edbceb1b8a0bbfd5","repo":"pola-rs/polars","slug":"the-table-s-minimum-reader-version-is-table-proto","errorCode":null,"errorMessage":"The table's minimum reader version is {table_protocol.min_reader_version} but polars delta scanner only supports version 1 or {MAX_SUPPORTED_READER_VERSION} with these reader features: {SUPPORTED_READER_FEATURES}","messagePattern":"The table's minimum reader version is (.+?) but polars delta scanner only supports version 1 or (.+?) with these reader features: (.+?)","errorType":"exception","errorClass":"DeltaProtocolError","httpStatus":null,"severity":"error","filePath":"py-polars/src/polars/io/delta/_dataset.py","lineNumber":325,"sourceCode":"                    {**(self.storage_options or {}), **credential_provider_creds}\n                    if self.storage_options is not None\n                    or self.credential_provider_builder is not None\n                    else None\n                ),\n                delta_table_options=self.delta_table_options,\n            )\n\n            table_protocol = table.protocol()\n\n            if (\n                table_protocol.min_reader_version > MAX_SUPPORTED_READER_VERSION\n                or table_protocol.min_reader_version == NOT_SUPPORTED_READER_VERSION\n            ):\n                msg = (\n                    f\"The table's minimum reader version is {table_protocol.min_reader_version} \"\n                    f\"but polars delta scanner only supports version 1 or {MAX_SUPPORTED_READER_VERSION} with these reader features: {SUPPORTED_READER_FEATURES}\"\n                )\n                raise DeltaProtocolError(msg)\n            if (\n                table_protocol.min_reader_version >= 3\n                and table_protocol.reader_features is not None\n            ):\n                missing_features = {*table_protocol.reader_features}.difference(\n                    SUPPORTED_READER_FEATURES\n                )\n                if len(missing_features) > 0:\n                    msg = f\"The table has set these reader features: {missing_features} but these are not yet supported by the polars delta scanner.\"\n                    raise DeltaProtocolError(msg)\n\n            self.table_.set(table)\n\n        return self.table_.get()  # type: ignore[return-value]\n\n    def __getstate__(self) -> dict[str, Any]:\n        self.table_uri()\n        return self.__dict__","sourceCodeStart":307,"sourceCodeEnd":343,"githubUrl":"https://github.com/pola-rs/polars/blob/fe841f959ef4d2ceefc05a310d33ed7b1ab24e5e/py-polars/src/polars/io/delta/_dataset.py#L307-L343","documentation":"The Delta table's protocol minReaderVersion is either the sentinel unsupported value or a version the polars delta scanner cannot handle (only version 1, or the max supported version with known reader features). polars raises DeltaProtocolError instead of silently failing to read.","triggerScenarios":"scan_delta/read_delta/schema/table_uri on a table whose DeltaTable.protocol().min_reader_version is NOT_SUPPORTED_READER_VERSION or > MAX_SUPPORTED_READER_VERSION with unrecognized features.","commonSituations":"Tables written by much newer Delta/Databricks runtimes or Iceberg-uniform tables requiring reader features polars hasn't implemented.","solutions":["Upgrade polars and deltalake to the latest versions for broader protocol support","Downgrade the table protocol by rewriting it (e.g. clone/CTAS into a table without advanced reader features)","Read the table with the deltalake library or Spark directly and convert to polars"],"exampleFix":"// before\npl.scan_delta('s3://bucket/new-protocol-table')\n// after\nfrom deltalake import DeltaTable\ndf = pl.from_arrow(DeltaTable('s3://bucket/new-protocol-table').to_pyarrow_dataset())  # after upgrading or rewriting the table","handlingStrategy":"try-catch","validationCode":"from deltalake import DeltaTable\nfrom deltalake.exceptions import DeltaProtocolError\nproto = DeltaTable(path).protocol()\nif proto.min_reader_version > 1 and proto.min_reader_version not in (2,):\n    print('protocol may be unsupported:', proto)","typeGuard":null,"tryCatchPattern":"try:\n    lf = pl.scan_delta(path)\nexcept DeltaProtocolError as e:\n    lf = pl.from_arrow(DeltaTable(path).to_pyarrow_dataset())","preventionTips":["Inspect DeltaTable(path).protocol() before scanning tables from new writers","Avoid enabling experimental reader features on shared tables","Keep polars/deltalake current"],"tags":["python","polars","delta-lake","protocol","compatibility"],"backgroundTag":"incompatible-source-type","analyzedSha":"fe841f959ef4d2ceefc05a310d33ed7b1ab24e5e","analyzedAt":"2026-09-18T22:14:11.667Z","contentChangedAt":"2026-09-18T22:14:11.667Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}