{"record":{"id":"ea2111c115524df3","repo":"pola-rs/polars","slug":"write-database-with-snowflake-driver-requires-pya","errorCode":null,"errorMessage":"write_database with Snowflake driver requires 'pyarrow'.\nPlease install using the command `pip install pyarrow`.","messagePattern":"write_database with Snowflake driver requires 'pyarrow'\\.\nPlease install using the command `pip install pyarrow`\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"py-polars/src/polars/dataframe/frame.py","lineNumber":4634,"sourceCode":"                        if (\n                            getattr(err, \"status_code\", None)\n                            == driver_manager.AdbcStatusCode.NOT_FOUND\n                        ):\n                            mode = \"create_append\"\n\n                # For Snowflake, we convert to PyArrow until string_view columns can be\n                # written. Ref: https://github.com/apache/arrow-adbc/issues/3420\n                is_snowflake_driver = (\n                    \"snowflake\" in adbc_module_name\n                    if _PYARROW_AVAILABLE\n                    else _is_adbc_snowflake_conn(conn)\n                )\n                if is_snowflake_driver and not _PYARROW_AVAILABLE:\n                    msg = (\n                        \"write_database with Snowflake driver requires 'pyarrow'.\\n\"\n                        \"Please install using the command `pip install pyarrow`.\"\n                    )\n                    raise ModuleNotFoundError(msg)\n\n                # As of adbc_driver_manager 1.6.0, adbc_ingest can take a Polars\n                # DataFrame via the PyCapsule interface\n                data = (\n                    self\n                    if (driver_manager_version >= (1, 6)) and not is_snowflake_driver\n                    else self.to_arrow()\n                )\n\n                # use of schema-qualified table names was released in\n                # adbc-driver-manager 0.7.0 and is working without bugs from driver\n                # version (e.g., adbc-driver-postgresql) version 0.8.0\n                if driver_manager_version >= (0, 7) and adbc_driver_version >= (0, 8):\n                    n_rows = cursor.adbc_ingest(\n                        unpacked_table_name,\n                        data=data,\n                        mode=mode,\n                        catalog_name=catalog,","sourceCodeStart":4616,"sourceCodeEnd":4652,"githubUrl":"https://github.com/pola-rs/polars/blob/df599052daf96e7a9cc30a3b0c6bd25d6947e3c0/py-polars/src/polars/dataframe/frame.py#L4616-L4652","documentation":"Error \"write_database with Snowflake driver requires 'pyarrow'.\nPlease install using the command `pip install pyarrow`.\" thrown in pola-rs/polars.","triggerScenarios":"Thrown at py-polars/src/polars/dataframe/frame.py:4634 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"}