{"record":{"id":"ffb212b660ea7b06","repo":"pola-rs/polars","slug":"engine-must-be-one-of-connectorx-adbc-go","errorCode":null,"errorMessage":"engine must be one of {{'connectorx', 'adbc'}}, got {engine!r}","messagePattern":"engine must be one of (.+?)\\}, got (.+?)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"py-polars/src/polars/io/database/functions.py","lineNumber":533,"sourceCode":"            schema_overrides=schema_overrides,\n            pre_execution_query=pre_execution_query,\n        )\n    elif engine == \"adbc\":\n        if not isinstance(query, str):\n            msg = f\"only a single SQL query string is accepted for adbc, got a {qualified_type_name(query)!r} type\"\n            raise ValueError(msg)\n        if pre_execution_query:\n            msg = \"the 'adbc' engine does not support use of `pre_execution_query`\"\n            raise ValueError(msg)\n        return _read_sql_adbc(\n            query,\n            connection_uri=uri,\n            schema_overrides=schema_overrides,\n            execute_options=execute_options,\n        )\n    else:\n        msg = f\"engine must be one of {{'connectorx', 'adbc'}}, got {engine!r}\"\n        raise ValueError(msg)\n","sourceCodeStart":515,"sourceCodeEnd":534,"githubUrl":"https://github.com/pola-rs/polars/blob/4db92c12c08c390f95b517a00ae0afe818e1abf6/py-polars/src/polars/io/database/functions.py#L515-L534","documentation":"ValueError raised by read_database's engine validation: the engine argument is neither 'connectorx' nor 'adbc', so no database reader can be selected. It fires in the dispatch chain after the specialized engines fail to match, naming the received engine value.","triggerScenarios":"Thrown at py-polars/src/polars/io/database/functions.py:532 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set engine to 'connectorx' or 'adbc'; other engine names are invalid."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4db92c12c08c390f95b517a00ae0afe818e1abf6","analyzedAt":"2026-08-19T12:15:06.350Z","contentChangedAt":"2026-08-19T12:15:06.350Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}