From 6c4e98cc855f032bdb80d4c547329cbf88412e2d Mon Sep 17 00:00:00 2001 From: Vikrant Puppala Date: Wed, 10 Jun 2026 16:30:59 +0530 Subject: [PATCH] chore(pyo3): roll #153 into the v0.2.0 release notes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The pyo3 U2M default-scopes fix (#153) merged into main after this PR was opened, so its NEXT_CHANGELOG.md entry needs to move into the v0.2.0 section of pyo3/CHANGELOG.md (the same release-cut surgery the parent commit did for the entries that existed at the time). - Move the "Fixed: U2M default scopes" entry from pyo3/NEXT_CHANGELOG.md → pyo3/CHANGELOG.md under [v0.2.0]. - Drop the "pyo3 surface unchanged from v0.1.2" claim from the v0.2.0 header — it no longer holds. - Empty pyo3/NEXT_CHANGELOG.md back to the template. No version-site changes (the wheel is already 0.2.0 in pyo3/Cargo.toml and pyo3/pyproject.toml from the parent commit, and the v0.2.0 release-date line stays as gopalldb cut it). Co-authored-by: Isaac Signed-off-by: Vikrant Puppala --- pyo3/CHANGELOG.md | 21 +++++++++++++++++---- pyo3/NEXT_CHANGELOG.md | 10 ---------- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/pyo3/CHANGELOG.md b/pyo3/CHANGELOG.md index faf0af63..1a5dc9f8 100644 --- a/pyo3/CHANGELOG.md +++ b/pyo3/CHANGELOG.md @@ -9,12 +9,25 @@ they ship on independent cadences. ## [v0.2.0] - 2026-06-08 **Beta release of the Databricks SQL Kernel (Python binding).** -Ships on PyPI as `databricks-sql-kernel==0.2.0`. The pyo3 surface -is unchanged from v0.1.2; this release picks up the +Ships on PyPI as `databricks-sql-kernel==0.2.0`. Picks up the kernel-side v0.2.0 behaviour changes (see the root [`../CHANGELOG.md`](../CHANGELOG.md) — `execute_direct`, -`wait_timeout` removal, `CLOSED`-as-success fix). Intended for -downstream-driver adoption in `databricks-sql-connector[kernel]`. +`wait_timeout` removal, `CLOSED`-as-success fix) plus the pyo3-side +fix below. Intended for downstream-driver adoption in +`databricks-sql-connector[kernel]`. + +### Fixed +- `auth_type="oauth-u2m"` now defaults scopes to `["sql", "offline_access"]` + when the caller passes neither `client_id` nor `scopes` (#153). The + Python binding defaults the U2M client to `databricks-sql-python` (vs. + the kernel's `databricks-cli`), but that client isn't registered for + the `all-apis` scope the kernel intrinsically defaults to — so an + out-of-the-box `Session(auth_type="oauth-u2m")` failed the + authorization request with `access_denied — Scopes 'all-apis' are not + assigned to the client databricks-sql-python`. Defaults now match + `PYSQL_OAUTH_SCOPES` in the standalone Thrift connector, restoring + `use_kernel=True` parity. A caller-supplied `client_id` or `scopes` is + still honoured verbatim. ## [v0.1.2] - 2026-06-06 diff --git a/pyo3/NEXT_CHANGELOG.md b/pyo3/NEXT_CHANGELOG.md index d57d524c..fff7b1cb 100644 --- a/pyo3/NEXT_CHANGELOG.md +++ b/pyo3/NEXT_CHANGELOG.md @@ -16,16 +16,6 @@ changes go in the root `NEXT_CHANGELOG.md`. ### Updated ### Fixed -- `auth_type="oauth-u2m"` now defaults scopes to `["sql", "offline_access"]` - when the caller passes neither `client_id` nor `scopes`. The Python binding - defaults the U2M client to `databricks-sql-python` (vs. the kernel's - `databricks-cli`), but that client isn't registered for the `all-apis` scope - the kernel intrinsically defaults to — so an out-of-the-box - `Session(auth_type="oauth-u2m")` failed the authorization request with - `access_denied — Scopes 'all-apis' are not assigned to the client - databricks-sql-python`. Defaults now match `PYSQL_OAUTH_SCOPES` in the - standalone Thrift connector, restoring `use_kernel=True` parity. A - caller-supplied `client_id` or `scopes` is still honoured verbatim. --- *Note: When making changes, please add your change under the appropriate