pola-rs/polars · error

engine {engine!r} is not supported

Error message

engine {engine!r} is not supported

What it means

Error "engine {engine!r} is not supported" thrown in pola-rs/polars.

Source

Thrown at py-polars/src/polars/dataframe/frame.py:4743

                res: int | None = self.to_pandas(
                    use_pyarrow_extension_array=True,
                ).to_sql(
                    name=unpacked_table_name,
                    schema=db_schema,
                    con=sa_object,
                    if_exists=if_table_exists,
                    index=False,
                    **(engine_options or {}),
                )
            finally:
                if engine_to_dispose is not None:
                    engine_to_dispose.dispose()

            return -1 if res is None else res

        elif isinstance(engine, str):
            msg = f"engine {engine!r} is not supported"
            raise ValueError(msg)
        else:
            msg = f"unrecognised connection type {qualified_type_name(connection)!r}"
            raise TypeError(msg)

    @unstable()
    def write_iceberg(
        self,
        target: str | pyiceberg.table.Table,
        mode: Literal["append", "overwrite"],
    ) -> None:
        """
        Write DataFrame to an Iceberg table.

        .. warning::
            This functionality is currently considered **unstable**. It may be
            changed at any point without it being considered a breaking change.

        Parameters

View on GitHub (pinned to df599052da)

When it happens

Trigger: Thrown at py-polars/src/polars/dataframe/frame.py:4743 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of pola-rs/polars@df599052da (2026-08-16). Data as JSON: /api/errors/979645d27359cb5e. Report an issue: GitHub.