Repository navigation
Releases
Releases · databricks/databricks-sql-kernel
v1.5.0
Python
Added
ExecutedAsyncStatement.num_modified_rowsand
AsyncStatementReader.num_modified_rowsexpose cached affected-row counts
without polling or consuming results.
Changed
- Buffered fetches, EOF reads and closing drained result handles avoid
unnecessary Tokio runtime entry and GIL release/reacquisition. - Reuse successful async completion responses to avoid redundant status
requests, and avoid redundant telemetry flush tasks during event bursts.
Updated
- Bundle the kernel's Arrow and Quinn dependency security updates.
Fixed
- Closing sessions releases transport and OAuth resources, fixing a leak of
four file descriptors per closed Python session. - A failed OAuth token request fails session creation immediately without a
duplicate authentication attempt. - CloudFetch prefetch continues across page boundaries, preserves complete
ordered results and responds to cancellation. Nonblocking reads yield on
lock contention. - Fetch all pages of inline Arrow results when CloudFetch is disabled on a
warehouse that supports paged inline delivery. - Directly completed statements expose affected-row counts without consuming
the fetched counter row. - TLS certificate verification errors fail immediately with their underlying
cause; CloudFetch errors and debug logs omit presigned URL query strings.
Node.js
Changed
- Reuse successful async completion responses to avoid redundant status
requests, and avoid redundant telemetry flush tasks during event bursts.
Updated
- Bundle the kernel's Arrow and Quinn dependency security updates.
Fixed
AsyncStatement.close()releases its canceller and result streams without
waiting for garbage collection, allowing the shared telemetry client and
its settings to be released. Fetching from anAsyncResultHandleafter
close returnsInvalidStatementHandle, unless a fetch was already using
the stream when close ran.- Closing connections releases their transport and OAuth resources.
- A failed OAuth token request fails connection creation immediately without
a duplicate authentication attempt. - CloudFetch prefetch continues across page boundaries, preserves complete
ordered results and responds to cancellation. Nonblocking reads yield on
lock contention. - Fetch all pages of inline Arrow results when CloudFetch is disabled on a
warehouse that supports paged inline delivery. - Directly completed statements expose affected-row counts without consuming
the fetched counter row. - TLS certificate verification errors fail immediately with their underlying
cause; CloudFetch errors and debug logs omit presigned URL query strings.
v1.4.0
Python
Added
ExecutedAsyncStatement.reader()returns an independent
AsyncStatementReaderfor status and result reads with the source
handle's session routing.
Changed
- Sessions open through the warehouse sessions URL and keep Lakehouse
Real-Time session affinity for statements they own. Asynchronous
execution on Real-Time works through the original session and statement
handle; cross-session polling and fetching are not supported.
Updated
- Bundle the kernel's
ctutils0.4.4 security update.
Fixed
- Telemetry from statements and result streams that outlive their
Session
is flushed instead of dropped, andSession.close()waits for a telemetry
flush only when it closes the last open session for its host.
Node.js
Changed
- Connections open through the warehouse sessions URL and keep Lakehouse
Real-Time session affinity for statements they own.
Updated
- Bundle the kernel's
ctutils0.4.4 security update.
Fixed
- Telemetry from statements and result streams that outlive their
Connectionis flushed instead of dropped, andConnection.close()waits
for a telemetry flush only when it closes the last open connection for its
host.
v1.3.0
Python
Updated
- Bundle the kernel's TLS and runtime dependency security updates.
Fixed
- Preserve manifest column nullability in empty-result PyArrow schemas when
no Arrow schema is supplied.
Node.js
Updated
- Bundle the kernel's TLS and runtime dependency security updates.
Fixed
- Preserve manifest column nullability in empty-result Arrow schemas when
no Arrow schema is supplied.
v1.2.0
Python
Added
- The default-enabled
Session(..., enable_geospatial_support=...)argument
selects native SRID+WKB Arrow results when enabled and WKT / EWKT strings
when disabled. Session(..., sea_response_compression_enabled=...)opts back into HTTP
compression for bandwidth-constrained SEA connections.
Changed
- An omitted
telemetry_enabledallows workspace feature-flag enablement;
an explicitTrueorFalsestill takes precedence.
Fixed
- Fixed an intermittent hang in
Session.close()or handle cleanup when a
runtime worker was forwarding a log record to Pythonloggingduring
runtime shutdown.
Node.js
Added
- The default-enabled
ConnectionOptions.enableGeoSpatialSupportoption
selects native SRID+WKB Arrow results when enabled and WKT / EWKT strings
when disabled. ConnectionOptions.seaResponseCompressionEnabledopts back into HTTP
compression for bandwidth-constrained SEA connections.
Changed
- An omitted
telemetryEnabledallows workspace feature-flag enablement;
an explicittrueorfalsestill takes precedence.
Fixed
getCrossReferenceallows the foreign-key side to be omitted, returning an
empty result without issuing a server statement.getPrimaryKeysaccepts null or undefined catalog and schema values, resolving
them from the current session, and preserves explicit empty names.listFunctionsaccepts an empty catalog and forwards it to native
GetFunctionsfor Thrift-compatible behavior.
v1.1.0
Python
Added
Session(..., max_connections=...)configures idle HTTP connections per
host.
Node.js
No Node.js-binding-specific changes.
v1.0.0
Python
Fixed
ExecutedAsyncStatement.close()now finalizes async statement telemetry in
partial-fetch flows.
Node.js
Fixed
AsyncStatement.close()now finalizes async statement telemetry in
partial-fetch flows.
v0.3.0
Added
Session(..., token_cache_enabled=..., token_cache_passphrase=...)controls
the encrypted U2M disk cache.Session(..., request_timeout_secs=...)configures the per-request timeout;
unset or0keeps the kernel default.telemetry_circuit_breaker_enabled,telemetry_circuit_breaker_threshold,
andtelemetry_circuit_breaker_timeout_msconfigure telemetry failure
isolation.
Fixed
- Empty catalog filters for
list_schemas()andlist_columns()return empty
results instead ofInvalidArgument. - Explicit synchronous statement close finalizes telemetry after partial
result consumption.
v0.2.0
Beta release of the Databricks SQL Kernel (Node.js binding).
Ships on npm as @databricks/databricks-sql-kernel@0.2.0 (umbrella
- 8 platform packages). Intended for downstream-driver adoption in
@databricks/sql's kernel-backed path.
Added
Connection.executeStatementDirect(sql, options?)— exposes the
kernel's directResultsexecute_direct, returning
Either<Statement, AsyncStatement>(terminalStatementfor a
fast query, or anAsyncStatementpoll/cancel handle for a slow
one). Consumed by the Node.js driver's default sync path.
Updated
- Removed
ExecuteOptions.queryTimeoutSecs: it threaded onto the
now-removed kernelquery_timeout_secs, which abused the SEA
wait_timeoutinline-hold window rather than being a real
statement timeout.
v0.1.4
::warning::No changelog entry found for version 'v0.1.4' in CHANGELOG.md
Release v0.1.4
v0.1.2: chore(release): bump version 0.1.0 -> 0.1.2 (#125)
## Summary - Sync the in-repo manifest version to **0.1.2** across all three crates + the npm package. The `v0.1.1` tag was cut at the previous commit but the manifests still read `0.1.0`; skipping `0.1.1` (never published) and going straight to `0.1.2` avoids re-using an existing tag. - No code changes — only the 5 manifest version strings plus the 3 Cargo lockfile path-dep version bumps. ## Files touched | File | Reason | |---|---| | `Cargo.toml` + `Cargo.lock` | kernel root crate | | `pyo3/Cargo.toml` + `pyo3/Cargo.lock` | pyo3 binding crate | | `pyo3/pyproject.toml` | Python wheel metadata | | `napi/Cargo.toml` + `napi/Cargo.lock` | napi binding crate | | `napi/package.json` | npm package metadata | Lockfile changes are limited to the three workspace-root path-dep version bumps; no transitive dep churn (`cargo update -p <root> --offline` only, no general `cargo update`). ## Release plan 1. Merge this PR. 2. Tag the merge commit as `v0.1.2` (`git tag -s v0.1.2 ... && git push origin v0.1.2`). 3. `v0.1.1` stays in the tag list, unpublished — do not reuse. ## Test plan - [x] `cargo metadata --no-deps` on root / pyo3 / napi all report `0.1.2`. - [x] `cargo +stable fmt --all` clean. - [ ] CI: `Build & Test`, `PyO3 Checks`, `napi-checks`, `Security Scan`, `License Check`, `DCO`. This pull request and its description were written by Isaac. Signed-off-by: Gopal Lal <gopal.lal@databricks.com>