diff --git a/CHANGELOG.md b/CHANGELOG.md index 78b337e6..943c6a63 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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] diff --git a/CONNECTION_PARAMETERS.md b/CONNECTION_PARAMETERS.md index edcf6001..2a11227d 100644 --- a/CONNECTION_PARAMETERS.md +++ b/CONNECTION_PARAMETERS.md @@ -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 @@ -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; diff --git a/Cargo.toml b/Cargo.toml index ee46e1b7..96fca350 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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", + "/LICENSE", + "/NOTICE.txt", +] [dependencies] # The `log` feature makes `tracing::*` macros also emit `log::Record`s diff --git a/README.md b/README.md index cae3f253..98382eec 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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 ``` diff --git a/docs/spec-v0.md b/docs/spec-v0.md index 80b7685e..ad317764 100644 --- a/docs/spec-v0.md +++ b/docs/spec-v0.md @@ -16,12 +16,10 @@ # 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 @@ -29,9 +27,6 @@ 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: diff --git a/src/client/sea.rs b/src/client/sea.rs index 08abede8..a5aa3563 100644 --- a/src/client/sea.rs +++ b/src/client/sea.rs @@ -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. /// diff --git a/src/reader/post_processor/mod.rs b/src/reader/post_processor/mod.rs index a57b5d5d..4c5c82ce 100644 --- a/src/reader/post_processor/mod.rs +++ b/src/reader/post_processor/mod.rs @@ -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; diff --git a/src/statement/executed_async.rs b/src/statement/executed_async.rs index e16dd2ff..f9dfc2ac 100644 --- a/src/statement/executed_async.rs +++ b/src/statement/executed_async.rs @@ -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(());