{"record":{"id":"e5883289b57a4b74","repo":"pola-rs/polars","slug":"the-table-has-set-these-reader-features-missing","errorCode":null,"errorMessage":"The table has set these reader features: {missing_features} but these are not yet supported by the polars delta scanner.","messagePattern":"The table has set these reader features: (.+?) but these are not yet supported by the polars delta scanner\\.","errorType":"exception","errorClass":"DeltaProtocolError","httpStatus":null,"severity":"error","filePath":"py-polars/src/polars/io/delta/_dataset.py","lineNumber":335,"sourceCode":"            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__\n\n    def __setstate__(self, state: dict[str, Any]) -> None:\n        self.__dict__ = state\n\n\ndef _extract_delta_deletion_vectors(\n    requested_paths: pl.DataFrame,\n    delta_deletion_vectors: pl.DataFrame,\n) -> pl.DataFrame:\n    \"\"\"","sourceCodeStart":317,"sourceCodeEnd":353,"githubUrl":"https://github.com/pola-rs/polars/blob/fe841f959ef4d2ceefc05a310d33ed7b1ab24e5e/py-polars/src/polars/io/delta/_dataset.py#L317-L353","documentation":"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.","triggerScenarios":"scan_delta/read_delta on a delta table where protocol.reader_features contains features polars does not support (e.g. vacuumProtocolCheck, catalogOwned-preview variants).","commonSituations":"Tables created with Delta 3.x features (catalog-managed tables, advanced writer features) being scanned by older polars/deltalake.","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"],"exampleFix":"// before\npl.scan_delta('s3://bucket/catalog-managed-table')\n// after\ndf = pl.from_arrow(DeltaTable('s3://bucket/catalog-managed-table').to_pyarrow_dataset())  # or upgrade polars/deltalake","handlingStrategy":"try-catch","validationCode":"from deltalake import DeltaTable\nfeatures = DeltaTable(path).protocol().reader_features or []\nunsupported = set(features) - SUPPORTED_READER_FEATURES\nif unsupported:\n    print('unsupported reader features:', unsupported)","typeGuard":null,"tryCatchPattern":"try:\n    lf = pl.scan_delta(path)\nexcept DeltaProtocolError as e:\n    if 'reader features' in str(e):\n        lf = pl.from_arrow(DeltaTable(path).to_pyarrow_dataset())","preventionTips":["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"],"tags":["python","polars","delta-lake","protocol","feature-support"],"backgroundTag":"feature-not-enabled","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"}