You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fd10cc1
Browse filesBrowse the repository at this point in the historyBrowse files
perf(thrift): close only the session in Connection.close()
Connection.close() sent one CloseOperation per open cursor, one after
another, before CloseSession. On Thrift, CloseSession already releases
every operation of the session (finished, undrained CloudFetch, and
running statements, which are cancelled), so those round trips only added
latency: about one RTT per open cursor.
On Thrift, close the session first; the cursors then close client-side
only, through the existing path for cursors whose connection is already
closed (queues and CloudFetch downloads shut down, result sets marked
closed). Kernel and SEA keep closing each command first.
Signed-off-by: Vu Anh Phung <vu.phung@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
# Unreleased
4
4
- 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))
5
5
- 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.
6
+
- Speed up `Connection.close()` on Thrift when cursors are still open: it now sends only CloseSession, which releases the session's statements on the server, instead of first sending one CloseOperation per open cursor.
6
7
7
8
# 4.9.0 (2026-11-04)
8
9
- 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.
0 commit comments