Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 14 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
# Release History

# Unreleased
- Upgrade Databricks SQL Kernel to 1.5.0, avoiding redundant status requests when asynchronous kernel statements complete.
- Reduce overhead when fetching buffered kernel results, checking for end of results, and closing drained cursors.
# 4.10.0 (2026-11-24)
- Upgrade Databricks SQL Kernel to 1.5.0, with lower overhead for buffered fetches and closing drained cursors, and Arrow and Quinn security updates.
- Kernel TLS certificate errors fail after one attempt and report the underlying cause, including for CloudFetch.
- A failed OAuth token request fails kernel connections immediately instead of authenticating again.
- Fix file-descriptor leaks when closing kernel connections, including OAuth connections.
- Keep kernel CloudFetch downloads progressing across result pages and respond to cancellation during prefetch.
- Omit presigned CloudFetch URL query strings, including signatures, from kernel request errors and debug logs.
- Preserve affected-row counts from immediately completed kernel statements without consuming result rows.
- Honor `max_download_threads` on kernel connections, with a default download window of 16 and explicit chunk-setting overrides. Invalid values raise `ValueError` when connecting with `use_kernel=True`.
- Fix the kernel backend ignoring `use_cloud_fetch=False`, so complete results can be fetched without cloud-storage downloads.
- Fix inline parameters (`use_inline_params=True`) so a sequence directly after `IN` renders as a list again: `x IN %(ids)s` renders as `x IN (1,2,3)` instead of `x IN ARRAY(1,2,3)`, which Spark rejects. Inside the list, tuples render as rows for a multi-column `IN`, and a `set` or `frozenset` is accepted again. Sequences anywhere else still render as `ARRAY(...)` ([#629](https://github.com/databricks/databricks-sql-python/issues/629))
- Speed up Thrift response handling: read replies in 1 MiB chunks and decode them with Thrift's C-accelerated protocol, and stop stringifying every request/response for the default no-op debug logger. Wide result schemas, metadata calls with many rows, and inline Arrow results benefit most.
- Report `cursor.rowcount` after asynchronous DML completes on both the Thrift and kernel backends, preserving zero counts and fetched result rows.
- Kernel CloudFetch downloads keep progressing across result pages and respond to cancellation.
- Fix the kernel backend ignoring `use_cloud_fetch=False`.
- Omit presigned CloudFetch URL query strings from kernel errors and debug logs.
- Preserve affected-row counts from immediately completed kernel statements.
- Honor `max_download_threads` on kernel connections; invalid values raise `ValueError` with `use_kernel=True`.
- Forward `telemetry_flush_interval_ms` to the kernel, which previously ignored it.
- Report `cursor.rowcount` after asynchronous DML completes on the Thrift and kernel backends.
- Fix `use_inline_params=True` rendering a sequence after `IN` as `ARRAY(...)`, which Spark rejects ([#629](https://github.com/databricks/databricks-sql-python/issues/629)).
- Speed up Thrift response handling for wide results and metadata calls.
- Update oauthlib to 4.0.1 to address security findings.
Comment thread
cathleeny marked this conversation as resolved.
Resolved

# 4.9.0 (2026-11-04)
- Upgrade Databricks SQL Kernel to 1.4.0, which keeps Lakehouse Real-Time session affinity and flushes shared telemetry only after the final session closes.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "databricks-sql-connector"
version = "4.9.0"
version = "4.10.0"
description = "Databricks SQL Connector for Python"
authors = ["Databricks <databricks-sql-connector-maintainers@databricks.com>"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/databricks/sql/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def __repr__(self):
DATE = DBAPITypeObject("date")
ROWID = DBAPITypeObject()

__version__ = "4.9.0"
__version__ = "4.10.0"
USER_AGENT_NAME = "PyDatabricksSqlConnector"

# These two functions are pyhive legacy
Expand Down
Loading