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
46 changes: 46 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,52 @@ cadences and may not move in lockstep with the crate.

### Fixed

## [v1.5.0] - 2026-11-23

### Added
- A native Rust ADBC 1.1 driver in `adbc/`, with an optional standard ADBC C
ABI for driver-manager loading from other languages.
- `AsyncStatementReader::num_modified_rows()` exposes the cached affected-row
count without polling or consuming results.

### Changed
- Rust ADBC requests identify themselves as `RustADBCDatabricksDriver/<version>`
with an optional partner entry from `adbc.databricks.user_agent_entry`
(`adbc.spark.user_agent_entry` is a compatibility alias). `User-Agent` in
`adbc.databricks.http.headers` is now rejected; use the dedicated entry option.
- **Breaking (Rust API):** `ClientCredentialsProvider`,
`JwtClientCredentialsProvider` and `AuthorizationCodeProvider` constructors
take `&Arc<DatabricksHttpClient>` instead of `Arc<DatabricksHttpClient>` and
hold it weakly, matching `FederationProvider`. Callers must keep the client
alive while using the provider; fetching a token after it is dropped fails
with `invalid_state`.
- Reuse successful async completion responses when constructing results to
avoid redundant status requests.
- Avoid spawning redundant telemetry flush tasks during event bursts.

### Updated
- Update Arrow dependencies to 59.3.2, `quinn-proto` to 0.11.19 and
`quinn-udp` to 0.5.16 for security fixes.

### Fixed
- `Session::open` authenticates once before resolving feature flags. A failed
OAuth token request fails the open immediately instead of being sent again
by CreateSession.
- CloudFetch request errors and debug logs omit presigned URL query strings,
including signatures.
- Closing a session releases its transport, HTTP client and runtime handle;
OAuth providers no longer retain the HTTP client through a reference cycle.
- CloudFetch link prefetch advances ahead of downloads, shares in-flight page
requests, responds to cancellation and returns the cached tail before EOF.
- Nonblocking CloudFetch reads yield on lock contention and return earlier
chunks before a later link-fetch error.
- 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 while preserving
server-provided counts and the fetched counter row.
- TLS certificate verification errors fail after one attempt and report the
underlying cause, including for CloudFetch downloads.

## [v1.4.0] - 2026-11-03

### Added
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

[package]
name = "databricks-sql-kernel"
version = "1.4.0"
version = "1.5.0"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium — The root crate moved to 1.5.0, but adbc/Cargo.lock still pins the path crate databricks-sql-kernel at 1.4.0. --locked builds of the adbc workspace will fail, and other builds will rewrite the lockfile. Regenerate adbc/Cargo.lock, and bump the adbc version requirement to 1.5.0 since the driver uses 1.5.0 APIs.

🔀 Found by both reviewers · confirmed by the judge

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Low — The release changelog declares a breaking Rust API change (OAuth provider constructors now take &Arc<DatabricksHttpClient>) but only bumps the minor version, 1.4.0 to 1.5.0. The auth module is public, so semver-compatible consumers would break. The crate looks unpublished and is consumed by path, so the impact is small. Bump to 2.0.0, or keep deprecated shims for the old signatures.

🔀 Found by Claude Opus 5.5 · confirmed by the judge

edition = "2021"
authors = ["Databricks"]
license = "Apache-2.0"
Expand Down
19 changes: 0 additions & 19 deletions NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,12 @@ changes go in their respective binding's NEXT_CHANGELOG.

### Added

- A native Rust ADBC 1.1 driver in `adbc/`, with an optional standard ADBC C
ABI for driver-manager loading from other languages.

### Changed

- Rust ADBC requests identify themselves as `RustADBCDatabricksDriver/<version>`
with an optional partner entry from `adbc.databricks.user_agent_entry`
(`adbc.spark.user_agent_entry` is a compatibility alias). `User-Agent` in
`adbc.databricks.http.headers` is now rejected; use the dedicated entry option.
- **Breaking (Rust API):** `ClientCredentialsProvider`,
`JwtClientCredentialsProvider` and `AuthorizationCodeProvider` constructors
take `&Arc<DatabricksHttpClient>` instead of `Arc<DatabricksHttpClient>` and
hold it weakly, matching `FederationProvider`. Callers must keep the client
alive for as long as they use the provider; a token fetch after the client is
dropped fails with `invalid_state`.

### Updated

### Fixed

- `Session::open` authenticates once before resolving feature flags. A failed OAuth token request now fails the open immediately instead of being sent a second time by CreateSession.
- A timed-out or reset CloudFetch download no longer writes the presigned URL's signature (`sig=`, `X-Amz-Signature`) to the log or the returned error. The request URL in those messages now ends at the path, and debug request lines stop at `?`.
- Closing an OAuth session (M2M, M2M private key, U2M or Azure service principal) now frees its HTTP client and auth provider. The provider held the HTTP client strongly while the client owned the provider, so the pair and the provider's tokio runtime handle leaked for every closed session.
- Closing a `Session` now frees its transport, HTTP client and tokio runtime handle. A reference cycle between the transport and its result-reader factory kept them alive, so bindings that run one tokio runtime per session (Python) leaked four file descriptors per closed session until the process hit `Too many open files`.

---
*Note: When making changes, please add your change under the appropriate
section with a brief description. At release time, move the entries here
Expand Down
2 changes: 1 addition & 1 deletion adbc/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion adbc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ arrow-schema = "59"
# Native Rust integration with the kernel crate in this repository. The
# version is retained so Cargo can replace the path when packaging after both
# crates become publishable.
databricks-sql-kernel = { version = "1.4.0", path = ".." }
databricks-sql-kernel = { version = "1.5.0", path = ".." }
serde_json = "1"
tokio = { version = "1", features = ["rt-multi-thread"] }

Expand Down
28 changes: 28 additions & 0 deletions napi/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,34 @@ they ship on independent cadences.

### Fixed

## [v1.5.0] - 2026-11-23

### 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 an `AsyncResultHandle` after
close returns `InvalidStatementHandle`, 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] - 2026-11-03

### Changed
Expand Down
4 changes: 2 additions & 2 deletions napi/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion napi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ members = ["."]

[package]
name = "databricks-sql-kernel-napi"
version = "1.4.0"
version = "1.5.0"
edition = "2021"
authors = ["Databricks"]
license = "Apache-2.0"
Expand Down
2 changes: 0 additions & 2 deletions napi/NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ layout, or npm publishing. Pure-kernel changes go in the root

### Fixed

- `AsyncStatement.close()` now releases its canceller and the result streams of its `AsyncResultHandle`s. These held the session until JS garbage collection, so a host's shared telemetry client, and its settings, outlived every closed session and were reused by the next one. Fetching from an `AsyncResultHandle` after its statement is closed now returns `InvalidStatementHandle`, unless a fetch was using the stream when `close()` ran.

---
*Note: When making changes, please add your change under the appropriate
section with a brief description. At release time, move the entries here
Expand Down
2 changes: 1 addition & 1 deletion napi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@databricks/databricks-sql-kernel",
"version": "1.4.0",
"version": "1.5.0",
"description": "Databricks SQL Kernel — Node.js native binding.",
"main": "index.js",
"types": "index.d.ts",
Expand Down
31 changes: 31 additions & 0 deletions pyo3/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,37 @@ they ship on independent cadences.

### Fixed

## [v1.5.0] - 2026-11-23

### Added
- `ExecutedAsyncStatement.num_modified_rows` and
`AsyncStatementReader.num_modified_rows` expose 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.

## [v1.4.0] - 2026-11-03

### Added
Expand Down
4 changes: 2 additions & 2 deletions pyo3/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyo3/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ members = ["."]

[package]
name = "databricks-sql-kernel-pyo3"
version = "1.4.0"
version = "1.5.0"
edition = "2021"
authors = ["Databricks"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion pyo3/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "maturin"

[project]
name = "databricks-sql-kernel"
version = "1.4.0"
version = "1.5.0"
description = "Python bindings for the Databricks SQL Kernel (PyO3)"
# Floor matches the tested CI matrix in
# .github/workflows/pyo3-checks.yml (3.9 .. 3.14). The abi3-py39
Expand Down
Loading