diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ad36fe9..7b262b14 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,67 @@ cadences and may not move in lockstep with the crate. ### Fixed +## [v1.2.0] - 2026-10-19 + +### Added +- Thrift-native metadata routing with compatible public-schema casts and + one-based `getColumns` ordinals. +- Native Arrow `GEOMETRY` / `GEOGRAPHY` results as tagged `struct` + values, including nested values and empty-result schemas. The kernel uses + the structured logical manifest to reconcile attachments without copying + child buffers. +- Typed client-side `GEOMETRY` / `GEOGRAPHY` result representation selection. + The kernel normalizes both standard-warehouse WKT / EWKT and Reyden's native + SRID+WKB struct to the requested representation. No representation setting + is sent to SEA. +- The default-enabled `kernel_session_config_set_enable_geospatial_support()` + C ABI setting selects native SRID+WKB Arrow results when enabled and + WKT / EWKT strings when disabled. +- Authenticated connector-service feature flags with a bounded, process-wide + workspace cache and kernel-internal typed readers for all six SAFE types. +- Result schemas carry the Thrift-compatible `Spark:DataType:SqlName` and + optional `Spark:DataType:JsonType` field metadata from the SEA manifest. +- Caller-driven asynchronous statement submission, status polling, result + materialization, query IDs, row counts, cancellation, and close over the C ABI. +- Nonblocking result-batch fetching through Rust `try_next_batch()` and the C ABI. +- `Statement::submit_with_timeout()` enforces one client deadline across + submission and asynchronous status polling, with cancellation on expiry. + +### Changed +- Native SRID+WKB is now the default geospatial result representation. +- Route function metadata through the Thrift-native metadata path when + supported by the server. +- Authenticated SEA requests use `Accept-Encoding: identity` by default to + avoid gzipping inline LZ4-compressed Arrow results. Response compression can + be re-enabled through `HttpConfig` or the C ABI. +- Feature flags are fetched after kernel authentication and before session + creation; sessions read process-cache values instead of retaining snapshots. +- Kernel telemetry enablement follows the connector-service feature flag when + the client leaves it unspecified; explicit client settings take precedence. +- **Breaking (Rust API):** `TelemetryConfig::enabled` changes from `bool` to + `Option`. `None` defers to the workspace feature flag; use + `with_enabled` / `set_enabled` or wrap explicit values in `Some(...)`. +- A backward-compatible C telemetry-config v2 setter uses nullable config and + `has_enabled` to preserve unspecified client enablement. +- Synchronous `execute()` waits for a terminal server state without the implicit + 600-second client timeout; explicit execution deadlines remain supported. +- Inline Arrow result decoding avoids redundant response and attachment copies. + +### Updated +- Updated `quinn-proto` to 0.11.18 to address security scan findings. + +### Fixed +- `list_tables` matches `table_types` case-sensitively, matching Thrift + `GetTables`: `["table"]` no longer matches `TABLE` rows. +- Primary-key metadata resolves missing catalog and schema independently from + the current session and preserves explicit empty names. +- Foreign-key metadata preserves server-provided update and delete rules as + nullable `Int16` values. +- Empty ARRAY result schemas use the Thrift-compatible `element` child name, + including nested arrays. +- M2M and Azure service-principal token exchanges retry transient failures; + exhausted transient failures retain their status-based error codes. + ## [v1.1.0] - 2026-09-23 ### Added diff --git a/Cargo.lock b/Cargo.lock index 485df92a..4f3e1136 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -661,7 +661,7 @@ checksum = "4583a4551df46e2792f82ceeac45e850d2e2d5debba0b91f102385cda5b11f06" [[package]] name = "databricks-sql-kernel" -version = "1.1.0" +version = "1.2.0" dependencies = [ "aes 0.9.2", "arrow-array", diff --git a/Cargo.toml b/Cargo.toml index 43b7e1c9..96ebbaae 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ [package] name = "databricks-sql-kernel" -version = "1.1.0" +version = "1.2.0" edition = "2021" authors = ["Databricks"] license = "Apache-2.0" diff --git a/NEXT_CHANGELOG.md b/NEXT_CHANGELOG.md index 47e9270d..2ebce050 100644 --- a/NEXT_CHANGELOG.md +++ b/NEXT_CHANGELOG.md @@ -11,56 +11,12 @@ changes go in their respective binding's NEXT_CHANGELOG. ### Added -- Added Thrift-native metadata routing with compatible public-schema casts and one-based `getColumns` ordinals. -- Added native Arrow `GEOMETRY` / `GEOGRAPHY` results as tagged - `struct` values, including nested values and empty-result schemas. - The kernel treats Reyder's structured logical manifest as authoritative and - reconciles attachments that omit the canonical tags without copying child - buffers. -- Added typed client-side `GEOMETRY` / `GEOGRAPHY` result representation - selection. The kernel normalizes both standard-warehouse WKT / EWKT and - Reyden's native SRID+WKB struct to the requested representation. No - representation setting is sent to SEA. -- Added the default-enabled - `kernel_session_config_set_enable_geospatial_support` C ABI setting. Enabled - returns native SRID+WKB Arrow results; disabled returns WKT / EWKT strings. -- Add authenticated connector-service feature flags with a bounded, - process-wide workspace cache and kernel-internal typed readers for all six - SAFE types. -- Result schemas now carry the Thrift-compatible `Spark:DataType:SqlName` - field metadata key, set to the manifest's `type_text`, matching Thrift - results and the C# ADBC SEA path. -- Result schemas copy the manifest's optional `type_json` into the - Thrift-compatible `Spark:DataType:JsonType` field metadata key. - ### Changed -- Native SRID+WKB is now the default geospatial result representation. - -- Route function metadata through the Thrift-native metadata path when supported by the server. -- Authenticated SEA requests now use `Accept-Encoding: identity` by default to - avoid gzipping inline LZ4-compressed Arrow results. Response compression can - be re-enabled through `HttpConfig` or the C ABI. - -- Feature flags are fetched after kernel authentication and before session - creation; sessions read process-cache values instead of retaining snapshots. -- Kernel telemetry enablement now follows the connector-service Kernel feature - flag when the client leaves it unspecified; explicit client enable/disable - settings take precedence. -- **Breaking (Rust API):** `TelemetryConfig::enabled` changes type from `bool` - to `Option`, where `None` defers to the workspace feature flag. Direct - Rust consumers that read or assign this public field must migrate (e.g. use - the new `with_enabled`/`set_enabled` helpers or wrap values in `Some(..)`). -- Added a backward-compatible C telemetry-config v2 setter whose nullable - config and `has_enabled` field preserve unspecified client enablement. - ### Updated ### Fixed -- `list_tables` now matches `table_types` case-sensitively, matching Thrift - `GetTables`: `["table"]` no longer matches `TABLE` rows. - --- *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/CHANGELOG.md b/napi/CHANGELOG.md index 08209db6..8b4655b2 100644 --- a/napi/CHANGELOG.md +++ b/napi/CHANGELOG.md @@ -14,6 +14,27 @@ they ship on independent cadences. ### Fixed +## [v1.2.0] - 2026-10-19 + +### Added +- The default-enabled `ConnectionOptions.enableGeoSpatialSupport` option + selects native SRID+WKB Arrow results when enabled and WKT / EWKT strings + when disabled. +- `ConnectionOptions.seaResponseCompressionEnabled` opts back into HTTP + compression for bandwidth-constrained SEA connections. + +### Changed +- An omitted `telemetryEnabled` allows workspace feature-flag enablement; + an explicit `true` or `false` still takes precedence. + +### Fixed +- `getCrossReference` allows the foreign-key side to be omitted, returning an + empty result without issuing a server statement. +- `getPrimaryKeys` accepts null or undefined catalog and schema values, resolving + them from the current session, and preserves explicit empty names. +- `listFunctions` accepts an empty catalog and forwards it to native + `GetFunctions` for Thrift-compatible behavior. + ## [v1.1.0] - 2026-09-23 No Node.js-binding-specific changes. diff --git a/napi/Cargo.lock b/napi/Cargo.lock index d16b54b9..68f51af2 100644 --- a/napi/Cargo.lock +++ b/napi/Cargo.lock @@ -604,7 +604,7 @@ dependencies = [ [[package]] name = "databricks-sql-kernel" -version = "1.1.0" +version = "1.2.0" dependencies = [ "aes 0.9.2", "arrow-array", @@ -648,7 +648,7 @@ dependencies = [ [[package]] name = "databricks-sql-kernel-napi" -version = "1.1.0" +version = "1.2.0" dependencies = [ "arrow-array", "arrow-ipc", diff --git a/napi/Cargo.toml b/napi/Cargo.toml index a69e60c0..cc675d8b 100644 --- a/napi/Cargo.toml +++ b/napi/Cargo.toml @@ -35,7 +35,7 @@ members = ["."] [package] name = "databricks-sql-kernel-napi" -version = "1.1.0" +version = "1.2.0" edition = "2021" authors = ["Databricks"] license = "Apache-2.0" diff --git a/napi/NEXT_CHANGELOG.md b/napi/NEXT_CHANGELOG.md index 1d501829..8597f31e 100644 --- a/napi/NEXT_CHANGELOG.md +++ b/napi/NEXT_CHANGELOG.md @@ -14,23 +14,12 @@ layout, or npm publishing. Pure-kernel changes go in the root ### Added -- Added the default-enabled `ConnectionOptions.enableGeoSpatialSupport` option. - Enabled returns native SRID+WKB Arrow results; disabled returns WKT / EWKT - strings. -- Added `ConnectionOptions.seaResponseCompressionEnabled` to opt back into - HTTP compression for bandwidth-constrained SEA connections. - ### Changed -- An omitted `telemetryEnabled` now allows workspace feature-flag enablement; - an explicit `true` or `false` still takes precedence. - ### Updated ### Fixed -- Allow `getCrossReference` to omit the foreign-key side, returning an empty result without issuing a server statement. - --- *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 ffde8fba..6130cc3b 100644 --- a/napi/package.json +++ b/napi/package.json @@ -1,6 +1,6 @@ { "name": "@databricks/databricks-sql-kernel", - "version": "1.1.0", + "version": "1.2.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 cffbed21..5bc6b08f 100644 --- a/pyo3/CHANGELOG.md +++ b/pyo3/CHANGELOG.md @@ -14,6 +14,24 @@ they ship on independent cadences. ### Fixed +## [v1.2.0] - 2026-10-19 + +### 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_enabled` allows workspace feature-flag enablement; + an explicit `True` or `False` still takes precedence. + +### Fixed +- Fixed an intermittent hang in `Session.close()` or handle cleanup when a + runtime worker was forwarding a log record to Python `logging` during + runtime shutdown. + ## [v1.1.0] - 2026-09-23 ### Added diff --git a/pyo3/Cargo.lock b/pyo3/Cargo.lock index 4f4bf9a1..1e0788ec 100644 --- a/pyo3/Cargo.lock +++ b/pyo3/Cargo.lock @@ -600,7 +600,7 @@ dependencies = [ [[package]] name = "databricks-sql-kernel" -version = "1.1.0" +version = "1.2.0" dependencies = [ "aes 0.9.2", "arrow-array", @@ -644,7 +644,7 @@ dependencies = [ [[package]] name = "databricks-sql-kernel-pyo3" -version = "1.1.0" +version = "1.2.0" dependencies = [ "arrow-array", "arrow-pyarrow", diff --git a/pyo3/Cargo.toml b/pyo3/Cargo.toml index 9bc20b97..881d9a32 100644 --- a/pyo3/Cargo.toml +++ b/pyo3/Cargo.toml @@ -32,7 +32,7 @@ members = ["."] [package] name = "databricks-sql-kernel-pyo3" -version = "1.1.0" +version = "1.2.0" edition = "2021" authors = ["Databricks"] license = "Apache-2.0" diff --git a/pyo3/NEXT_CHANGELOG.md b/pyo3/NEXT_CHANGELOG.md index ca7ba1d9..e0881e54 100644 --- a/pyo3/NEXT_CHANGELOG.md +++ b/pyo3/NEXT_CHANGELOG.md @@ -13,25 +13,12 @@ changes go in the root `NEXT_CHANGELOG.md`. ### Added -- Added the default-enabled `enable_geospatial_support` session argument. - Enabled returns native SRID+WKB Arrow results; disabled returns WKT / EWKT - strings. -- Added `Session(..., sea_response_compression_enabled=...)` to opt back into - HTTP compression for bandwidth-constrained SEA connections. - ### Changed -- An omitted `telemetry_enabled` now allows workspace feature-flag enablement; - an explicit `True` or `False` still takes precedence. - ### Updated ### Fixed -- Fixed an intermittent hang in `Session.close()` (or when Python frees a - handle) when a runtime worker was forwarding a log record to Python - `logging` at the moment the session's runtime shut down. - --- *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/pyo3/pyproject.toml b/pyo3/pyproject.toml index aa4fad45..bf71d1ea 100644 --- a/pyo3/pyproject.toml +++ b/pyo3/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "maturin" [project] name = "databricks-sql-kernel" -version = "1.1.0" +version = "1.2.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