Skip to content

Releases: databricks/databricks-sql-python

v2.9.5

19 Mar 23:12
Compare
Choose a tag to compare

What's Changed

  • Backporting a fix to give a default retry-after on 429s/503s

v2.9.4

21 Feb 17:29
13599a9
Compare
Choose a tag to compare

What's Changed

Fix: Cloud fetch file download errors (#356)
Fix: Redact the URL query parameters from the urllib3.connectionpool logs (#341)

Full Changelog: v2.9.3...v2.9.4

v3.1.0

17 Feb 01:31
5048934
Compare
Choose a tag to compare

What's Changed

  • Support Databricks OAuth on GCP (#338)
  • Support Databricks OAuth on Azure (#351)
  • Revert retry-after behavior to be exponential backoff (#349)

v2.9.4-beta.1

16 Feb 20:56
da723e5
Compare
Choose a tag to compare
v2.9.4-beta.1 Pre-release
Pre-release

What's Changed

  • Fix: Cloud fetch file download errors (#356)
  • Fix: Redact the URL query parameters from the urllib3.connectionpool logs (#341)

v3.0.3

02 Feb 19:53
5a06ccd
Compare
Choose a tag to compare

What's Changed

  • Fix: Revised docstrings and examples for OAuth (#339)
  • Fix: Redact the URL query parameters from the urllib3.connectionpool logs ((#341)

v3.0.2

26 Jan 21:19
faf13a4
Compare
Choose a tag to compare

In this release:

SQLAlchemy dialect now supports table and column comments (thanks @cbornet!)
Fix: SQLAlchemy dialect now correctly reflects TINYINT types (thanks @TimTheinAtTabs!)
Fix: server_hostname URIs that included https:// would raise an exception
Other: pinned to pandas<=2.1 and urllib3>=1.26 to avoid runtime errors in dbt-databricks (#330)

v3.0.1

01 Dec 17:06
62eb1d4
Compare
Choose a tag to compare

In this release:

  • Other: updated docstring comment about default parameterization approach (#287)
  • Other: added tests for reading complex types and revised docstrings and type hints (#293)
  • Fix: SQLAlchemy dialect raised DeprecationWarning due to dbapi classmethod (#294)
  • Fix: SQLAlchemy dialect could not reflect TIMESTAMP_NTZ columns (#296)

v3.0.0

17 Nov 18:15
c3fdc2f
Compare
Choose a tag to compare

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
      • Numeric type scale and precision, like Numeric(10,2)
      • Reading and writing PrimaryKeyConstraint and ForeignKeyConstraint
      • Reading and writing composite keys
      • Reading and writing from views
      • Writing Identity to tables (i.e. autoincrementing primary keys)
      • LIMIT and OFFSET for paging through results
      • Caching metadata calls
  • Enables cloud fetch by default. To disable, set use_cloud_fetch=False when building databricks.sql.client.
  • Add integration tests for Databricks UC Volumes ingestion queries
  • Retries:
    • Add _retry_max_redirects config
    • Set _enable_v3_retries=True and warn if users override it.
  • Security: Bumps minimum pyarrow version to 14.0.1 (CVE-2023-47248)

v2.9.3

24 Aug 17:45
a737ef3
Compare
Choose a tag to compare

In this release:

  • Fix: Connections failed when urllib3~=1.0.0 is installed (#206)

v2.9.2

18 Aug 12:03
54a6102
Compare
Choose a tag to compare

⚠️ This release has been yanked from Pypi. See #222 for details.

In this release:

  • Other: Add examples/v3_retries_query_execute.py
  • Other: suppress log message when _enable_v3_retries is not True
  • Other: make this connector backwards compatible with urllib3>=1.0.0