diff --git a/CHANGELOG.md b/CHANGELOG.md index 67b652d3..78b337e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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/` + 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` instead of `Arc` 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 diff --git a/Cargo.lock b/Cargo.lock index b8867a94..d4992a7f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -643,7 +643,7 @@ checksum = "4583a4551df46e2792f82ceeac45e850d2e2d5debba0b91f102385cda5b11f06" [[package]] name = "databricks-sql-kernel" -version = "1.4.0" +version = "1.5.0" dependencies = [ "aes 0.9.2", "arrow-array", diff --git a/Cargo.toml b/Cargo.toml index f428c382..ee46e1b7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ [package] name = "databricks-sql-kernel" -version = "1.4.0" +version = "1.5.0" edition = "2021" authors = ["Databricks"] license = "Apache-2.0" diff --git a/NEXT_CHANGELOG.md b/NEXT_CHANGELOG.md index 2679ab73..2ebce050 100644 --- a/NEXT_CHANGELOG.md +++ b/NEXT_CHANGELOG.md @@ -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/` - 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` instead of `Arc` 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 diff --git a/adbc/Cargo.lock b/adbc/Cargo.lock index 37956eeb..dcaa4b65 100644 --- a/adbc/Cargo.lock +++ b/adbc/Cargo.lock @@ -645,7 +645,7 @@ dependencies = [ [[package]] name = "databricks-sql-kernel" -version = "1.4.0" +version = "1.5.0" dependencies = [ "aes 0.9.3", "arrow-array", diff --git a/adbc/Cargo.toml b/adbc/Cargo.toml index 8c19ac6c..a55b2321 100644 --- a/adbc/Cargo.toml +++ b/adbc/Cargo.toml @@ -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"] } diff --git a/napi/CHANGELOG.md b/napi/CHANGELOG.md index cbb2c571..24457756 100644 --- a/napi/CHANGELOG.md +++ b/napi/CHANGELOG.md @@ -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 diff --git a/napi/Cargo.lock b/napi/Cargo.lock index b7eb6a6d..b3b4c36e 100644 --- a/napi/Cargo.lock +++ b/napi/Cargo.lock @@ -604,7 +604,7 @@ dependencies = [ [[package]] name = "databricks-sql-kernel" -version = "1.4.0" +version = "1.5.0" dependencies = [ "aes 0.9.2", "arrow-array", @@ -651,7 +651,7 @@ dependencies = [ [[package]] name = "databricks-sql-kernel-napi" -version = "1.4.0" +version = "1.5.0" dependencies = [ "arrow-array", "arrow-ipc", diff --git a/napi/Cargo.toml b/napi/Cargo.toml index d1778963..78326e4d 100644 --- a/napi/Cargo.toml +++ b/napi/Cargo.toml @@ -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" diff --git a/napi/NEXT_CHANGELOG.md b/napi/NEXT_CHANGELOG.md index d5ca462e..8597f31e 100644 --- a/napi/NEXT_CHANGELOG.md +++ b/napi/NEXT_CHANGELOG.md @@ -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 diff --git a/napi/package.json b/napi/package.json index 26f1a544..3d3cb87c 100644 --- a/napi/package.json +++ b/napi/package.json @@ -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", diff --git a/pyo3/CHANGELOG.md b/pyo3/CHANGELOG.md index efadb4c2..1c74a988 100644 --- a/pyo3/CHANGELOG.md +++ b/pyo3/CHANGELOG.md @@ -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 diff --git a/pyo3/Cargo.lock b/pyo3/Cargo.lock index c908c554..fa59876f 100644 --- a/pyo3/Cargo.lock +++ b/pyo3/Cargo.lock @@ -600,7 +600,7 @@ dependencies = [ [[package]] name = "databricks-sql-kernel" -version = "1.4.0" +version = "1.5.0" dependencies = [ "aes 0.9.2", "arrow-array", @@ -647,7 +647,7 @@ dependencies = [ [[package]] name = "databricks-sql-kernel-pyo3" -version = "1.4.0" +version = "1.5.0" dependencies = [ "arrow-array", "arrow-pyarrow", diff --git a/pyo3/Cargo.toml b/pyo3/Cargo.toml index f8ee20dd..7b6270f2 100644 --- a/pyo3/Cargo.toml +++ b/pyo3/Cargo.toml @@ -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" diff --git a/pyo3/pyproject.toml b/pyo3/pyproject.toml index 995e4a67..1750e86c 100644 --- a/pyo3/pyproject.toml +++ b/pyo3/pyproject.toml @@ -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