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

### Fixed

## [v0.3.0] - 2026-08-28

### Added
- C ABI mTLS client-certificate and private-key configuration via
`kernel_session_config_set_tls_client_certificate()`.
- C ABI request-timeout configuration via
`kernel_session_config_set_request_timeout()`.
- Result-stream and metadata lifecycle telemetry, including first-batch,
consumption, and CloudFetch metrics.

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 v0.3.0 section adds several entries that were not present in any NEXT_CHANGELOG.md pending list rolled in by this PR:

  • Root: Result-stream and metadata lifecycle telemetry ... first-batch, consumption, and CloudFetch metrics and Per-host telemetry circuit breaker (Added), Caller-supplied server session configuration now passes through unchanged (Changed), and Telemetry preserves error query IDs, flushes on the kernel runtime, finalizes on explicit statement close, and emits DELETE_SESSION from C ABI close (Fixed).
  • napi/pyo3: the telemetryCircuitBreaker* / telemetry_circuit_breaker_* Added entries and the Explicit synchronous statement close finalizes telemetry Fixed entry.

The removed NEXT_CHANGELOG blocks in this diff don't contain these lines, so they were authored fresh at release time rather than migrated from the tracked pending list. That's the safe direction (more documentation, not less), but please confirm each of these actually corresponds to a change that landed for 0.3.0 — release-time additions that skipped the NEXT_CHANGELOG discipline are easy to get slightly wrong (wrong wording, wrong package, or describing something not yet shipped).

- Per-host telemetry circuit breaker, configurable through Rust, C ABI, PyO3,
and napi.

### Changed
- Caller-supplied server session configuration now passes through unchanged;
client-only result options are still stripped before the SEA request.
- Temporary DNS resolution failures are retried; permanent unknown hosts fail
immediately.

### Fixed
- Empty schema and column catalog filters return typed empty results without a
server statement.
- Type-info metadata matches the Thrift `getTypeInfo` 20-row result shape.
- Telemetry preserves error query IDs, flushes on the kernel runtime, finalizes
on explicit statement close, and emits `DELETE_SESSION` from C ABI close.

## [v0.2.1] - 2026-08-24

### 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 = "0.2.1"
version = "0.3.0"
edition = "2021"
authors = ["Databricks"]
license = "Apache-2.0"
Expand Down
20 changes: 0 additions & 20 deletions NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,14 @@ changes go in their respective binding's NEXT_CHANGELOG.

## [Unreleased]


### Added

- C ABI: expose the kernel's existing mTLS client identity configuration
through `kernel_session_config_set_tls_client_certificate()`. The client
certificate and private key are supplied atomically and must both be
non-empty.

- C ABI: `kernel_session_config_set_request_timeout()` configures the total
timeout for one HTTP request in milliseconds; `0` keeps the kernel's
120-second default. This enables Go and other C-ABI consumers to expose
request-timeout configuration.

### Changed

- HTTP retries now treat temporary DNS resolver failures as transient while
permanent unknown-host failures still fail immediately.

### Updated

### Fixed

- Metadata: empty schema/column patterns now return typed empty results without
issuing a server statement.

- Metadata: `Metadata::type_info()` now matches the established Thrift
`getTypeInfo` result shape and current 20-row type catalogue.

---
*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
27 changes: 16 additions & 11 deletions napi/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,27 @@ they ship on independent cadences.
## [Unreleased]

### Added
- **U2M on-disk token-cache control on `openSession`** — `tokenCacheEnabled`
and `tokenCachePassphrase` let a Node caller enable/disable (or set the
AES-256 passphrase for) the kernel's built-in encrypted disk cache on the
kernel path. Omitted keeps the kernel default (enabled, machine-local key,
survives restarts); `tokenCacheEnabled: false` re-logins each fresh process; a
passphrase with no explicit flag implies enabled. Applies to `OAuthU2m`.
(PECOBLR-4146)

The generated `index.d.ts` gains the two optional fields; `index.js` (the
loader) is unchanged — new `#[napi(object)]` fields don't alter the exported
symbol set.

### Changed

### Fixed

## [v0.3.0] - 2026-08-28

### Added
- `tokenCacheEnabled` and `tokenCachePassphrase` on `openSession` control the
encrypted U2M disk cache.
- `ExecuteOptions.rawParams` preserves pre-marshalled SQL type names such as
`INTERVAL MONTH` and `INTERVAL DAY`.
- `telemetryCircuitBreakerEnabled`, `telemetryCircuitBreakerThreshold`, and
`telemetryCircuitBreakerTimeoutMs` configure telemetry failure isolation.

### Fixed
- Empty catalog filters for `listSchemas()` and `listColumns()` return empty
results instead of `InvalidArgument`.
- Explicit synchronous statement close finalizes telemetry after partial
result consumption.

## [v0.2.1] - 2026-08-24

### Added
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 = "0.2.1"
version = "0.3.0"
edition = "2021"
authors = ["Databricks"]
license = "Apache-2.0"
Expand Down
8 changes: 0 additions & 8 deletions napi/NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,14 @@ layout, or npm publishing. Pure-kernel changes go in the root

## [Unreleased]


### Added

- Added `ExecuteOptions.rawParams`, allowing Node.js callers to preserve
pre-marshalled SQL type names such as `INTERVAL MONTH` and `INTERVAL DAY`
instead of collapsing them through `TypedValue::Interval`.

### Changed

### Updated

### Fixed

- Empty catalog filters for `listSchemas()` and `listColumns()` now match
nothing instead of returning `InvalidArgument`; non-empty catalogs stay exact.

---
*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": "0.2.1",
"version": "0.3.0",
"description": "Databricks SQL Kernel — Node.js native binding.",
"main": "index.js",
"types": "index.d.ts",
Expand Down
25 changes: 17 additions & 8 deletions pyo3/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,28 @@ they ship on independent cadences.
## [Unreleased]

### Added
- **U2M on-disk token-cache control** — `Session(…, token_cache_enabled=…,
token_cache_passphrase=…)` lets a caller enable/disable (or set the AES-256
passphrase for) the kernel's built-in encrypted disk cache on the kernel path.
Omitted keeps the kernel default (enabled, machine-local key, survives
restarts); `token_cache_enabled=False` re-logins each fresh process; a
passphrase with no explicit flag implies enabled. Applies to `oauth-u2m`.
The `databricks-sql-python` connector maps its `experimental_oauth_persistence`
presence onto this enable flag (#913). (PECOBLR-4146)

### Changed

### Fixed

## [v0.3.0] - 2026-08-28

### Added
- `Session(..., token_cache_enabled=..., token_cache_passphrase=...)` controls
the encrypted U2M disk cache.
- `Session(..., request_timeout_secs=...)` configures the per-request timeout;
unset or `0` keeps the kernel default.
- `telemetry_circuit_breaker_enabled`, `telemetry_circuit_breaker_threshold`,
and `telemetry_circuit_breaker_timeout_ms` configure telemetry failure
isolation.

### Fixed
- Empty catalog filters for `list_schemas()` and `list_columns()` return empty
results instead of `InvalidArgument`.
- Explicit synchronous statement close finalizes telemetry after partial
result consumption.

## [v0.2.1] - 2026-08-24

### 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 = "0.2.1"
version = "0.3.0"
edition = "2021"
authors = ["Databricks"]
license = "Apache-2.0"
Expand Down
7 changes: 0 additions & 7 deletions pyo3/NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,14 @@ changes go in the root `NEXT_CHANGELOG.md`.

## [Unreleased]


### Added

- `Session(..., request_timeout_secs=...)` configures the total timeout for one
HTTP request; unset or `0` keeps the kernel's 120-second default.

### Changed

### Updated

### Fixed

- Empty catalog filters for `list_schemas()` and `list_columns()` now match
nothing instead of raising `InvalidArgument`; non-empty catalogs stay exact.

---
*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 = "0.2.1"
version = "0.3.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