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
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

This changelog tracks releases of the Rust crate published to crates.io.
The Python (pyo3) and Node.js (napi) bindings have their own changelogs
under [`pyo3/CHANGELOG.md`](pyo3/CHANGELOG.md) and
[`napi/CHANGELOG.md`](napi/CHANGELOG.md); they ship on independent
in the repository's [Python changelog](https://github.com/databricks/databricks-sql-kernel/blob/main/pyo3/CHANGELOG.md) and
[Node.js changelog](https://github.com/databricks/databricks-sql-kernel/blob/main/napi/CHANGELOG.md); they ship on independent
cadences and may not move in lockstep with the crate.

## [Unreleased]
Expand Down
8 changes: 4 additions & 4 deletions CONNECTION_PARAMETERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ bindings just select the flow.
- **Azure U2M (`AzureOAuthU2M`, `azure-oauth`): planned — not yet in v0.**
The `AzureOAuthU2M` variant / `AuthConfig::azure_oauth_u2m(...)` constructor and
the pyo3 `auth_type="azure-oauth"` selector are **not** shipped in this release;
the design (PECOBLR-4120) is tracked in
`docs/designs/PECOBLR-4141-azure-service-principal-design.md`. When it lands the
the design (PECOBLR-4120) is tracked in the
[Azure service-principal design](https://github.com/databricks/databricks-sql-kernel/blob/main/docs/designs/PECOBLR-4141-azure-service-principal-design.md). When it lands the
kernel will pin the workspace **v2.0** endpoints
(`{host}/oidc/oauth2/v2.0/{authorize,token}`, which the workspace redirects to
Entra), the Azure app client id (`96eecda7-…`), port `8030`, and the
Expand All @@ -87,8 +87,8 @@ bindings just select the flow.
`azure_tenant_id` (optional — auto-discovered when omitted),
`azure_workspace_resource_id` (optional — enables the management-token add-on,
see below), `identity_federation_client_id` (optional WIF). Construct via the
`AuthConfig::azure_service_principal(...)` validating constructor. See
`docs/designs/PECOBLR-4141-azure-service-principal-design.md`.
`AuthConfig::azure_service_principal(...)` validating constructor. See the
[Azure service-principal design](https://github.com/databricks/databricks-sql-kernel/blob/main/docs/designs/PECOBLR-4141-azure-service-principal-design.md).

The generic `OAuthM2M` path (Entra `token_url_override` +
`2ff814a6-…/.default` scope) still works and requires an explicit tenant;
Expand Down
14 changes: 14 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,20 @@ description = "Databricks SQL Kernel — Rust client core for Databricks SQL dri
repository = "https://github.com/databricks/databricks-sql-kernel"
keywords = ["databricks", "arrow", "database", "sql"]
categories = ["database"]
include = [
"/src/**",
"/include/**",
"/tests/**",
"/docs/spec-v0.md",
"/docs/release-debuginfo.md",
"/Cargo.toml",
"/Cargo.lock",
"/README.md",
"/CHANGELOG.md",
"/CONNECTION_PARAMETERS.md",
Comment thread
rahuls-db marked this conversation as resolved.
Resolved
"/LICENSE",
"/NOTICE.txt",
]

[dependencies]
# The `log` feature makes `tracing::*` macros also emit `log::Record`s
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ surface) for direct Rust use, the PyO3 (Python) and napi-rs (Node.js)
wrappers, and a C ABI for ODBC / Go consumers. See
[`docs/spec-v0.md`](docs/spec-v0.md) for the API spec.

The separate [`adbc/`](adbc/) Cargo workspace implements ADBC 1.1 directly over this
The separate [`adbc/`](https://github.com/databricks/databricks-sql-kernel/tree/main/adbc) Cargo workspace implements ADBC 1.1 directly over this
native Rust API. It provides both Rust traits and an optional standard ADBC C
entry point for driver managers and other languages; the kernel boundary does
not use FFI.
Expand All @@ -39,9 +39,9 @@ Early. Expect breaking changes.
```bash
cargo build
cargo test --workspace
make check # workspace fmt + clippy + tests and native ABI smoke tests

# ADBC is a separate Cargo workspace and is validated explicitly by make check.
# The following commands require a full repository checkout.
make check # workspace fmt + clippy + tests and native ABI smoke tests
cargo test --manifest-path adbc/Cargo.toml --features ffi
```

Expand Down
13 changes: 4 additions & 9 deletions docs/spec-v0.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,17 @@

# Databricks SQL Kernel — v0 Spec

> Snapshot of the [Common Spec for SQL Driver Kernel](https://docs.google.com/document/d/1Wmev0fFMtQYC0OxELMVuS6hmZBvvxCoSfJDMOE5vxgY)
> as of 2026-05-04. The Google Doc is the source of truth; this file is a
> mirror so the kernel-v0 refactor can land discrete PRs against a stable
> reference. Update this file when the spec changes upstream. Image-only
> figures (`![][image1]`, `![][image2]`) are referenced in the source doc
> and not reproduced here.
> Snapshot of the Common Spec for SQL Driver Kernel as of 2026-05-04. This
> file is the public reference for the kernel v0 API. Image-only figures
> (`![][image1]`, `![][image2]`) from the original design are not reproduced
> here.

# Common Spec for SQL Driver Kernel

# Background

As we started OSS ODBC driver development, we took the Kernel-first approach in Rust to avoid building the same driver core for different user facing drivers. We started using ADBC Spec as the Kernel interface. As now we expand the scope of Kernel to support existing OSS Drivers like PySQL, Go Driver and NodeJS driver, we are redesigning the Kernel with an independent Databricks-first spec, completely decoupled from ADBC, making better use of Databricks constructs across different drivers.

More details on this re-alignment:
[Heilmeier: Rust Kernel Strategy for OSS SQL Drivers](https://docs.google.com/document/d/1ZcsH0RP1fnmXEw3SeOi9e8Yi2PtOhYaBLr4jwwswifY/edit?tab=t.0#heading=h.63gxvivr4xae)

# Requirements

We want to make sure the new Kernel spec supports following:
Expand Down
9 changes: 4 additions & 5 deletions src/client/sea.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,11 +286,10 @@ impl SeaRestTransport {
///
/// `chunk_index` is a path parameter (the SEA REST contract).
/// `row_offset` is appended as a query parameter on the inline-
/// Arrow path — the SEA inline-Arrow design (go/inline-arrow-sea,
/// "OSS JDBC Driver" section) revives the previously deprecated
/// `row_offset` field for clients fetching by `chunk_index +
/// rowOffset` against ThriftServer's `FETCH_ABSOLUTE`-based inline
/// path. On the CloudFetch path (where the kernel passes
/// Arrow path. This revives the previously deprecated `row_offset`
/// field for clients fetching by `chunk_index + rowOffset` against
/// ThriftServer's `FETCH_ABSOLUTE`-based inline path. On the
/// CloudFetch path (where the kernel passes
/// `row_offset = 0`) we omit the parameter entirely so we don't
/// perturb the existing wire shape that today's SEA accepts.
///
Expand Down
4 changes: 3 additions & 1 deletion src/reader/post_processor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
//! `next_batch` indirection regardless of how many transforms are
//! active, and so the "no work" case is genuinely zero-cost.
//!
//! See `docs/designs/complex-types-json-stringify.md` for the design.
//! See the [complex-type JSON design] for details.
//!
//! [complex-type JSON design]: https://github.com/databricks/databricks-sql-kernel/blob/main/docs/designs/complex-types-json-stringify.md

mod geospatial;
mod json;
Expand Down
3 changes: 1 addition & 2 deletions src/statement/executed_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1139,8 +1139,7 @@ impl ExecutedAsyncStatement {
// `Ok(())`, so the retry-on-failure branch is reachable only
// once the transport is changed to surface real errors. The
// load-then-store-on-success shape is the forward-prep for
// that change — see the JIRA candidate at
// `sea-workflow/jira-candidates/2026-05-25-kernel-sea-close-statement-surface-errors.md`.
// that change.
async {
if self.closed.load(Ordering::Acquire) {
return Ok(());
Expand Down
Loading