Skip to content

Commit 70157ed

Browse files
aakash-saravanan-dbIsaac
andcommitted
Merge main into perf/direct-row-construction
Resolve the CHANGELOG conflict from the 4.10.0 release by starting a new Unreleased section with this change's entry. Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com> Co-authored-by: Isaac <no-reply@databricks.com>
2 parents 6db3195 + 1fbbe28 commit 70157ed

5 files changed

Lines changed: 30 additions & 19 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
11
# Release History
22

33
# Unreleased
4-
- 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`.
5-
- Fix the kernel backend ignoring `use_cloud_fetch=False`, so complete results can be fetched without cloud-storage downloads.
6-
- 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))
7-
- 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.
8-
- Report `cursor.rowcount` after asynchronous DML completes on both the Thrift and kernel backends, preserving zero counts and fetched result rows.
9-
- Speed up `fetchone()`, `fetchmany()` and `fetchall()`: each result `Row` is now built directly instead of through several Python calls per row. The rows are unchanged. Large results and many concurrent cursors in one process benefit most.
4+
- Speed up `fetchone()`, `fetchmany()` and `fetchall()` by building each result `Row` with fewer Python calls. The rows are unchanged. Large results and many concurrent cursors in one process benefit most.
5+
6+
# 4.10.0 (2026-11-24)
7+
- Upgrade Databricks SQL Kernel to 1.5.0, with lower overhead for buffered fetches and closing drained cursors, and Arrow and Quinn security updates.
8+
- Kernel TLS certificate errors fail after one attempt and report the underlying cause, including for CloudFetch.
9+
- A failed OAuth token request fails kernel connections immediately instead of authenticating again.
10+
- Fix file-descriptor leaks when closing kernel connections, including OAuth connections.
11+
- Kernel CloudFetch downloads keep progressing across result pages and respond to cancellation.
12+
- Fix the kernel backend ignoring `use_cloud_fetch=False`.
13+
- Omit presigned CloudFetch URL query strings from kernel errors and debug logs.
14+
- Preserve affected-row counts from immediately completed kernel statements.
15+
- Honor `max_download_threads` on kernel connections; invalid values raise `ValueError` with `use_kernel=True`.
16+
- Forward `telemetry_flush_interval_ms` to the kernel, which previously ignored it.
17+
- Report `cursor.rowcount` after asynchronous DML completes on the Thrift and kernel backends.
18+
- 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)).
19+
- Speed up Thrift response handling for wide results and metadata calls.
20+
- Update oauthlib to 4.0.1 to address security findings.
1021

1122
# 4.9.0 (2026-11-04)
1223
- 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.

‎KERNEL_REV‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0b5d0edfed32c0745d5abc2468fc3070e2eb2a17
1+
5c3a909771f749174567af074bfe18c24a335f5c

‎poetry.lock‎

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pyproject.toml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "databricks-sql-connector"
3-
version = "4.9.0"
3+
version = "4.10.0"
44
description = "Databricks SQL Connector for Python"
55
authors = ["Databricks <databricks-sql-connector-maintainers@databricks.com>"]
66
license = "Apache-2.0"
@@ -67,10 +67,10 @@ requests-kerberos = {version = "^0.15.0", optional = true}
6767
# is ``abi3`` with ``Requires-Python: >=3.9`` (built ``abi3-py39``); the
6868
# dependency remains gated to the connector's Python >= 3.10 support floor.
6969
#
70-
# Floor is 1.4.0 (``^1.4.0`` == ``>=1.4.0,<2.0.0``), allowing compatible
70+
# Floor is 1.5.0 (``^1.5.0`` == ``>=1.5.0,<2.0.0``), allowing compatible
7171
# 1.x releases while keeping the next major upgrade deliberate. The kernel's
7272
# pyarrow constraint remains >=23.0.1,<24.
73-
databricks-sql-kernel = {version = "^1.4.0", optional = true, python = ">=3.10"}
73+
databricks-sql-kernel = {version = "^1.5.0", optional = true, python = ">=3.10"}
7474

7575

7676
[tool.poetry.extras]

‎src/databricks/sql/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def __repr__(self):
7171
DATE = DBAPITypeObject("date")
7272
ROWID = DBAPITypeObject()
7373

74-
__version__ = "4.9.0"
74+
__version__ = "4.10.0"
7575
USER_AGENT_NAME = "PyDatabricksSqlConnector"
7676

7777
# These two functions are pyhive legacy

0 commit comments

Comments
 (0)