The core library for connecting Python to Databricks SQL, providing a DB-API 2.0 interface. Currently at version 4.2.6, released frequently (multiple releases per month). Supports Python 3.8 to 3.14. Built on Thrift and Arrow for efficient data transfer.
pip install databricks-sql-connector-coreVerified import paths — ran on the pinned version, not inferred.
Connect to Databricks SQL with personal access token and run a query.
Update any custom thrift code to be compatible with thrift 0.19.0. If you encounter 'thrift.protocol.TProtocolException', check your thrift version.
Replace cursor.fetchall_arrow() with cursor.fetchall(). The returned type is now pyarrow.Table.
Do not use SQLAlchemy connection strings directly; use databricks-sql-connector with SQLAlchemy dialect for that.
Install the package and use 'from databricks import sql'.
Set environment variables or pass non-None strings: server_hostname='abc.cloud.databricks.com', http_path='/sql/1.0/warehouses/...'.
Verify server_hostname is correct (e.g., 'adb-...azuredatabricks.net') and that your network can reach the Databricks workspace. Check firewall/proxy settings.