pola-rs/polars · error · DeltaProtocolError
The table has set these reader features
Error message
The table has set these reader features: {missing_features} but these are not yet supported by the polars delta scanner. What it means
The delta table reader validates the table's protocol reader features; when the table enables reader features outside polars' supported set it raises DeltaProtocolError listing the missing/unsupported features.
Solutions
- Upgrade polars and deltalake to versions supporting the table's reader features
- Rewrite the table without the unsupported reader features
- Read via deltalake's pyarrow dataset and convert with pl.from_arrow
Example fix
// before
pl.scan_delta('s3://bucket/catalog-managed-table')
// after
df = pl.from_arrow(DeltaTable('s3://bucket/catalog-managed-table').to_pyarrow_dataset()) # or upgrade polars/deltalake Defensive patterns
Strategy: try-catch
Validate before calling
from deltalake import DeltaTable
features = DeltaTable(path).protocol().reader_features or []
unsupported = set(features) - SUPPORTED_READER_FEATURES
if unsupported:
print('unsupported reader features:', unsupported) Try / catch
try:
lf = pl.scan_delta(path)
except DeltaProtocolError as e:
if 'reader features' in str(e):
lf = pl.from_arrow(DeltaTable(path).to_pyarrow_dataset()) Prevention
- Check protocol.reader_features before scanning third-party-created tables
- Rewrite tables without unsupported reader features for shared consumption
- Upgrade polars/deltalake when tables use Delta 3.x features
When it happens
Trigger: scan_delta/read_delta on a delta table where protocol.reader_features contains features polars does not support (e.g. vacuumProtocolCheck, catalogOwned-preview variants).
Common situations: Tables created with Delta 3.x features (catalog-managed tables, advanced writer features) being scanned by older polars/deltalake.
Related errors
- The table's minimum reader version is
- 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/e5883289b57a4b74.
Report an issue: GitHub.
Appendix: source
Thrown at py-polars/src/polars/io/delta/_dataset.py:335
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__
def __setstate__(self, state: dict[str, Any]) -> None:
self.__dict__ = state
def _extract_delta_deletion_vectors(
requested_paths: pl.DataFrame,
delta_deletion_vectors: pl.DataFrame,
) -> pl.DataFrame:
"""View on GitHub (pinned to fe841f959e)