v3.0.0
You can now pip install databricks-sql-connector==3.0.0.
This release:
- Removes support for Python 3.7
- Adds support for native parameterized SQL queries. Requires DBR 14.2 and above. See here for more information.
- Includes our completely rewritten SQLAlchemy dialect:
- Adds support for SQLAlchemy >= 2.0 and drops support for SQLAlchemy 1.x
- Full e2e test coverage of all supported features
- Detailed usage notes available here
- Adds support for:
- New types:
TIME,TIMESTAMP,TIMESTAMP_NTZ,TINYINT Numerictype scale and precision, likeNumeric(10,2)- Reading and writing
PrimaryKeyConstraintandForeignKeyConstraint - Reading and writing composite keys
- Reading and writing from views
- Writing
Identityto tables (i.e. autoincrementing primary keys) LIMITandOFFSETfor paging through results- Caching metadata calls
- New types:
- Enables cloud fetch by default. To disable, set
use_cloud_fetch=Falsewhen buildingdatabricks.sql.client. - Add integration tests for Databricks UC Volumes ingestion queries
- Retries:
- Add
_retry_max_redirectsconfig - Set
_enable_v3_retries=Trueand warn if users override it.
- Add
- Security: Bumps minimum pyarrow version to 14.0.1 (CVE-2023-47248)