diff --git a/CHANGELOG.md b/CHANGELOG.md index bb2da72b..67b652d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,31 @@ cadences and may not move in lockstep with the crate. ### Fixed +## [v1.4.0] - 2026-11-03 + +### Added +- `ExecutedAsyncStatement::reader()` creates independent read-only handles + that retain session routing without owning cancellation, cleanup or + execution telemetry. + +### Changed +- SQL sessions open through the warehouse sessions URL and use warehouse + statement URLs for owned statements when the create response enables + real-time routing. Detached statement reads use standard SQL URLs. + Lakehouse Real-Time supports asynchronous execution through the original + session and statement handle; cross-session polling and fetching are not + supported. +- Warehouse session requests carry parent IDs only in the URL. The Rust wire + request structs now use `Option` for `warehouse_id`; use + `Some(id)` when building a standard SQL request body. + +### Fixed +- Telemetry events are no longer lost when a session is dropped outside a + Tokio runtime, when the runtime that created a host's shared telemetry + client shuts down, or when statements and result streams emit events after + `Session::close()`. Closing a session waits for a bounded telemetry flush + only when it is the last open session for its host. + ## [v1.3.0] - 2026-10-23 ### Updated diff --git a/Cargo.lock b/Cargo.lock index 8cd2ae32..cc17e30a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -661,7 +661,7 @@ checksum = "4583a4551df46e2792f82ceeac45e850d2e2d5debba0b91f102385cda5b11f06" [[package]] name = "databricks-sql-kernel" -version = "1.3.0" +version = "1.4.0" dependencies = [ "aes 0.9.2", "arrow-array", diff --git a/Cargo.toml b/Cargo.toml index 68d4b1fa..83eda191 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ [package] name = "databricks-sql-kernel" -version = "1.3.0" +version = "1.4.0" edition = "2021" authors = ["Databricks"] license = "Apache-2.0" diff --git a/NEXT_CHANGELOG.md b/NEXT_CHANGELOG.md index a2fe0cb9..2ebce050 100644 --- a/NEXT_CHANGELOG.md +++ b/NEXT_CHANGELOG.md @@ -11,13 +11,8 @@ changes go in their respective binding's NEXT_CHANGELOG. ### Added -- `ExecutedAsyncStatement::reader()` creates independent read-only handles that retain session routing without owning cancellation, cleanup or execution telemetry. - ### Changed -- SQL sessions open through the warehouse sessions URL and use warehouse statement URLs for owned statements when the create response enables real-time routing. Detached statement reads use standard SQL URLs. Lakehouse Real-Time supports asynchronous execution through the original session and statement handle; cross-session polling and fetching are not supported. -- Warehouse session requests carry parent IDs only in the URL. The Rust wire request structs now use `Option` for `warehouse_id`; use `Some(id)` when building a standard SQL request body. - ### Updated ### Fixed diff --git a/napi/CHANGELOG.md b/napi/CHANGELOG.md index a5d27ab3..cbb2c571 100644 --- a/napi/CHANGELOG.md +++ b/napi/CHANGELOG.md @@ -14,6 +14,21 @@ they ship on independent cadences. ### Fixed +## [v1.4.0] - 2026-11-03 + +### Changed +- Connections open through the warehouse sessions URL and keep Lakehouse + Real-Time session affinity for statements they own. + +### Updated +- Bundle the kernel's `ctutils` 0.4.4 security update. + +### Fixed +- Telemetry from statements and result streams that outlive their + `Connection` is flushed instead of dropped, and `Connection.close()` waits + for a telemetry flush only when it closes the last open connection for its + host. + ## [v1.3.0] - 2026-10-23 ### Updated diff --git a/napi/Cargo.lock b/napi/Cargo.lock index d2f5d54e..f52ea5e4 100644 --- a/napi/Cargo.lock +++ b/napi/Cargo.lock @@ -604,7 +604,7 @@ dependencies = [ [[package]] name = "databricks-sql-kernel" -version = "1.3.0" +version = "1.4.0" dependencies = [ "aes 0.9.2", "arrow-array", @@ -650,7 +650,7 @@ dependencies = [ [[package]] name = "databricks-sql-kernel-napi" -version = "1.3.0" +version = "1.4.0" dependencies = [ "arrow-array", "arrow-ipc", diff --git a/napi/Cargo.toml b/napi/Cargo.toml index b9e349fe..d1778963 100644 --- a/napi/Cargo.toml +++ b/napi/Cargo.toml @@ -35,7 +35,7 @@ members = ["."] [package] name = "databricks-sql-kernel-napi" -version = "1.3.0" +version = "1.4.0" edition = "2021" authors = ["Databricks"] license = "Apache-2.0" diff --git a/napi/package.json b/napi/package.json index a9f230b4..26f1a544 100644 --- a/napi/package.json +++ b/napi/package.json @@ -1,6 +1,6 @@ { "name": "@databricks/databricks-sql-kernel", - "version": "1.3.0", + "version": "1.4.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 64e7254c..efadb4c2 100644 --- a/pyo3/CHANGELOG.md +++ b/pyo3/CHANGELOG.md @@ -14,6 +14,27 @@ they ship on independent cadences. ### Fixed +## [v1.4.0] - 2026-11-03 + +### Added +- `ExecutedAsyncStatement.reader()` returns an independent + `AsyncStatementReader` for 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 `ctutils` 0.4.4 security update. + +### Fixed +- Telemetry from statements and result streams that outlive their `Session` + is flushed instead of dropped, and `Session.close()` waits for a telemetry + flush only when it closes the last open session for its host. + ## [v1.3.0] - 2026-10-23 ### Updated diff --git a/pyo3/Cargo.lock b/pyo3/Cargo.lock index d2bbf777..a1ee46ac 100644 --- a/pyo3/Cargo.lock +++ b/pyo3/Cargo.lock @@ -600,7 +600,7 @@ dependencies = [ [[package]] name = "databricks-sql-kernel" -version = "1.3.0" +version = "1.4.0" dependencies = [ "aes 0.9.2", "arrow-array", @@ -646,7 +646,7 @@ dependencies = [ [[package]] name = "databricks-sql-kernel-pyo3" -version = "1.3.0" +version = "1.4.0" dependencies = [ "arrow-array", "arrow-pyarrow", diff --git a/pyo3/Cargo.toml b/pyo3/Cargo.toml index 24a50f10..f8ee20dd 100644 --- a/pyo3/Cargo.toml +++ b/pyo3/Cargo.toml @@ -32,7 +32,7 @@ members = ["."] [package] name = "databricks-sql-kernel-pyo3" -version = "1.3.0" +version = "1.4.0" edition = "2021" authors = ["Databricks"] license = "Apache-2.0" diff --git a/pyo3/NEXT_CHANGELOG.md b/pyo3/NEXT_CHANGELOG.md index 968da6ca..e0881e54 100644 --- a/pyo3/NEXT_CHANGELOG.md +++ b/pyo3/NEXT_CHANGELOG.md @@ -13,8 +13,6 @@ changes go in the root `NEXT_CHANGELOG.md`. ### Added -- `ExecutedAsyncStatement.reader()` returns an independent `AsyncStatementReader` for status and result reads with the source handle's session routing. - ### Changed ### Updated diff --git a/pyo3/pyproject.toml b/pyo3/pyproject.toml index d43c79f4..995e4a67 100644 --- a/pyo3/pyproject.toml +++ b/pyo3/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "maturin" [project] name = "databricks-sql-kernel" -version = "1.3.0" +version = "1.4.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