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
61 changes: 61 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<srid,wkb>`
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<bool>`. `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
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.1.0"
version = "1.2.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 — This release carries a documented breaking change to a public Rust API — TelemetryConfig::enabled changed from bool to Option<bool> (confirmed at src/config.rs:1400, and the crate's own CHANGELOG labels it Breaking (Rust API)). Under Cargo/SemVer, a breaking change to a 1.x crate published to crates.io requires a major bump (2.0.0), not a minor bump (1.2.0). Any direct Rust consumer that reads or assigns TelemetryConfig::enabled will fail to compile after cargo update within the ^1 range, which SemVer promises is non-breaking.

If the intent is genuinely to keep this a minor release (e.g. the crate's SemVer policy is more lenient pre-2.0, or the field is not considered part of the stable surface), that reasoning is worth stating in the PR description so downstream consumers understand the compatibility expectation. Otherwise this should be 2.0.0.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This only affects direct Rust usage which we don;t have

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The crate's own CLAUDE.md states the v0 surface is "intended for direct Rust use, PyO3 / napi-rs wrappers, and a custom C ABI," and it's published to crates.io under ^1 — so SemVer's compatibility promise applies to any external Rust consumer, not just an in-repo one. "We don't have direct Rust usage" describes the current first-party situation but doesn't cover downstream crates that resolve databricks-sql-kernel within ^1 and would fail to compile after cargo update. The version at line 17 is still 1.2.0 and the breaking bool → Option<bool> change remains, so the concern stands. If the team has made a deliberate decision that the Rust API isn't a stability-covered surface pre-2.0, documenting that policy in the PR description would resolve this for downstream consumers.

edition = "2021"
authors = ["Databricks"]
license = "Apache-2.0"
Expand Down
44 changes: 0 additions & 44 deletions NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<srid,wkb>` 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<bool>`, 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
Expand Down
21 changes: 21 additions & 0 deletions napi/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
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.1.0"
version = "1.2.0"
edition = "2021"
authors = ["Databricks"]
license = "Apache-2.0"
Expand Down
11 changes: 0 additions & 11 deletions napi/NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
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.1.0",
"version": "1.2.0",
"description": "Databricks SQL Kernel — Node.js native binding.",
"main": "index.js",
"types": "index.d.ts",
Expand Down
18 changes: 18 additions & 0 deletions pyo3/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
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.1.0"
version = "1.2.0"
edition = "2021"
authors = ["Databricks"]
license = "Apache-2.0"
Expand Down
13 changes: 0 additions & 13 deletions pyo3/NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
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.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
Expand Down
Loading