pola-rs/polars · error · DeltaProtocolError
The table's minimum reader version is
Error message
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} What it means
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.
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
Example fix
// before
pl.scan_delta('s3://bucket/new-protocol-table')
// after
from deltalake import DeltaTable
df = pl.from_arrow(DeltaTable('s3://bucket/new-protocol-table').to_pyarrow_dataset()) # after upgrading or rewriting the table Defensive patterns
Strategy: try-catch
Validate before calling
from deltalake import DeltaTable
from deltalake.exceptions import DeltaProtocolError
proto = DeltaTable(path).protocol()
if proto.min_reader_version > 1 and proto.min_reader_version not in (2,):
print('protocol may be unsupported:', proto) Try / catch
try:
lf = pl.scan_delta(path)
except DeltaProtocolError as e:
lf = pl.from_arrow(DeltaTable(path).to_pyarrow_dataset()) Prevention
- Inspect DeltaTable(path).protocol() before scanning tables from new writers
- Avoid enabling experimental reader features on shared tables
- Keep polars/deltalake current
When it happens
Trigger: 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.
Common situations: Tables written by much newer Delta/Databricks runtimes or Iceberg-uniform tables requiring reader features polars hasn't implemented.
Understand the failure class
Background: "is not a compatible type" / "cannot merge" errors: when a value's type doesn't match what the library requires — this error's family across 65 libraries.
Related errors
- The table has set these reader features
- cannot use credential_provider when passing a DeltaTable…
- cannot use credential_provider when passing a DeltaTable…
- dataframe contains unsupported data types
- deltalake is not installed Please run: pip install…
AI-assisted analysis of pola-rs/polars@fe841f959e (2026-09-18).
Data as JSON: /api/errors/edbceb1b8a0bbfd5.
Report an issue: GitHub.
Appendix: source
Thrown at py-polars/src/polars/io/delta/_dataset.py:325
{**(self.storage_options or {}), **credential_provider_creds}
if self.storage_options is not None
or self.credential_provider_builder is not None
else None
),
delta_table_options=self.delta_table_options,
)
table_protocol = table.protocol()
if (
table_protocol.min_reader_version > MAX_SUPPORTED_READER_VERSION
or table_protocol.min_reader_version == NOT_SUPPORTED_READER_VERSION
):
msg = (
f"The table's minimum reader version is {table_protocol.min_reader_version} "
f"but polars delta scanner only supports version 1 or {MAX_SUPPORTED_READER_VERSION} with these reader features: {SUPPORTED_READER_FEATURES}"
)
raise DeltaProtocolError(msg)
if (
table_protocol.min_reader_version >= 3
and table_protocol.reader_features is not None
):
missing_features = {*table_protocol.reader_features}.difference(
SUPPORTED_READER_FEATURES
)
if len(missing_features) > 0:
msg = f"The table has set these reader features: {missing_features} but these are not yet supported by the polars delta scanner."
raise DeltaProtocolError(msg)
self.table_.set(table)
return self.table_.get() # type: ignore[return-value]
def __getstate__(self) -> dict[str, Any]:
self.table_uri()
return self.__dict__View on GitHub (pinned to fe841f959e)