{"record":{"id":"979645d27359cb5e","repo":"pola-rs/polars","slug":"engine-engine-r-is-not-supported","errorCode":null,"errorMessage":"engine {engine!r} is not supported","messagePattern":"engine (.+?) is not supported","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"py-polars/src/polars/dataframe/frame.py","lineNumber":4743,"sourceCode":"                res: int | None = self.to_pandas(\n                    use_pyarrow_extension_array=True,\n                ).to_sql(\n                    name=unpacked_table_name,\n                    schema=db_schema,\n                    con=sa_object,\n                    if_exists=if_table_exists,\n                    index=False,\n                    **(engine_options or {}),\n                )\n            finally:\n                if engine_to_dispose is not None:\n                    engine_to_dispose.dispose()\n\n            return -1 if res is None else res\n\n        elif isinstance(engine, str):\n            msg = f\"engine {engine!r} is not supported\"\n            raise ValueError(msg)\n        else:\n            msg = f\"unrecognised connection type {qualified_type_name(connection)!r}\"\n            raise TypeError(msg)\n\n    @unstable()\n    def write_iceberg(\n        self,\n        target: str | pyiceberg.table.Table,\n        mode: Literal[\"append\", \"overwrite\"],\n    ) -> None:\n        \"\"\"\n        Write DataFrame to an Iceberg table.\n\n        .. warning::\n            This functionality is currently considered **unstable**. It may be\n            changed at any point without it being considered a breaking change.\n\n        Parameters","sourceCodeStart":4725,"sourceCodeEnd":4761,"githubUrl":"https://github.com/pola-rs/polars/blob/df599052daf96e7a9cc30a3b0c6bd25d6947e3c0/py-polars/src/polars/dataframe/frame.py#L4725-L4761","documentation":"Error \"engine {engine!r} is not supported\" thrown in pola-rs/polars.","triggerScenarios":"Thrown at py-polars/src/polars/dataframe/frame.py:4743 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"}