databricks-sql-python

Databricks SQL Connector for Python

APACHE-2.0 License

Downloads
283
Stars
132
databricks-sql-python - v2.9.6 Latest Release

Published by benc-db 6 months ago

What's new

  • Backported fix: remove cookie handling code (#379)

Full Changelog: https://github.com/databricks/databricks-sql-python/compare/v2.9.5...v2.9.6

databricks-sql-python - v3.1.2

Published by benc-db 6 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/databricks/databricks-sql-python/compare/v3.1.1...v3.1.2

databricks-sql-python - v2.9.5

Published by benc-db 7 months ago

What's Changed

  • Backporting a fix to give a default retry-after on 429s/503s
databricks-sql-python - 3.1.1

Published by benc-db 7 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/databricks/databricks-sql-python/compare/v3.1.0...v3.1.1

databricks-sql-python - v2.9.4

Published by andrefurlan-db 8 months ago

What's Changed

Fix: Cloud fetch file download errors (https://github.com/databricks/databricks-sql-python/pull/356)
Fix: Redact the URL query parameters from the urllib3.connectionpool logs (https://github.com/databricks/databricks-sql-python/pull/341)

Full Changelog: https://github.com/databricks/databricks-sql-python/compare/v2.9.3...v2.9.4

databricks-sql-python - v3.1.0

Published by jackyhu-db 8 months ago

What's Changed

  • Support Databricks OAuth on GCP (#338)
  • Support Databricks OAuth on Azure (#351)
  • Revert retry-after behavior to be exponential backoff (#349)
databricks-sql-python - v2.9.4-beta.1

Published by andrefurlan-db 8 months ago

What's Changed

  • Fix: Cloud fetch file download errors (#356)
  • Fix: Redact the URL query parameters from the urllib3.connectionpool logs (#341)
databricks-sql-python - v3.0.3

Published by jackyhu-db 9 months ago

What's Changed

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

Published by susodapop 9 months ago

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)

databricks-sql-python - v3.0.1

Published by susodapop 11 months ago

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)
databricks-sql-python - v3.0.0

Published by susodapop 11 months ago

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)
databricks-sql-python - v2.9.3

Published by susodapop about 1 year ago

In this release:

  • Fix: Connections failed when urllib3~=1.0.0 is installed (#206)
databricks-sql-python - v2.9.2

Published by susodapop about 1 year ago

⚠️ This release has been yanked from Pypi. See https://github.com/databricks/databricks-sql-python/pull/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
databricks-sql-python - v2.9.1

Published by susodapop about 1 year ago

⚠️ This release has been yanked from Pypi. See https://github.com/databricks/databricks-sql-python/pull/222 for details.

In this release:

  • Other: Explicitly pin urllib3 to ^2.0.0
databricks-sql-python - v2.9.0

Published by susodapop about 1 year ago

In this release:

  • Replace retry handling with DatabricksRetryPolicy. This is disabled by default. To enable, set _enable_v3_retries=True when creating databricks.sql.client
  • Other: Fix typo in README quick start example
  • Other: Add autospec to Client mocks and tidy up make_request
databricks-sql-python - v2.8.0

Published by susodapop over 1 year ago

This release includes the following changes:

  • Add support for Cloud Fetch (#146, #151, #154)
  • SQLAlchemy has_table function now honours schema= argument and adds catalog= argument (#174)
  • SQLAlchemy set non_native_boolean_check_constraint False as it's not supported by Databricks (#120)
  • Fix: Revised SQLAlchemy dialect and examples for compatibility with SQLAlchemy==1.3.x (#173)
  • Fix: oauth would fail if expired credentials appeared in ~/.netrc (#122)
  • Fix: Python HTTP proxies were broken after switch to urllib3 (#158)
  • Other: remove unused import in SQLAlchemy dialect
  • Other: Relax pandas dependency constraint to allow ^2.0.0 (#164)
  • Other: Connector now logs operation handle guids as hexadecimal instead of bytes (#170)
  • Other: test_socket_timeout_user_defined e2e test was broken (#144)
databricks-sql-python - v2.7.0

Published by susodapop over 1 year ago

This minor version adds support for Azure OAuth and other fixes found in the CHANGELOG.

databricks-sql-python - v2.6.2

Published by susodapop over 1 year ago

This release includes:

  • Fix: Retry GetOperationStatus requests for http errors
databricks-sql-python - v2.6.1

Published by susodapop over 1 year ago

This release patches our handling of HTTP connections which raised BadStatusLine errors in some cases.

databricks-sql-python - v2.6.0

Published by susodapop over 1 year ago

This release incorporates support for HTTP 1.1 and a default socket timeout for thrift responses.

Note: support for proxies is un-tested in this release. Please report any problems with proxies via GitHub issues.