Skip to content

Commit d7b3cbb

Browse files
chore(pyo3): roll #153 into the v0.2.0 release notes
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 <vikrant.puppala@databricks.com>
1 parent 3f3ec2a commit d7b3cbb

2 files changed

Lines changed: 17 additions & 14 deletions

File tree

‎pyo3/CHANGELOG.md‎

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,25 @@ they ship on independent cadences.
99
## [v0.2.0] - 2026-06-08
1010

1111
**Beta release of the Databricks SQL Kernel (Python binding).**
12-
Ships on PyPI as `databricks-sql-kernel==0.2.0`. The pyo3 surface
13-
is unchanged from v0.1.2; this release picks up the
12+
Ships on PyPI as `databricks-sql-kernel==0.2.0`. Picks up the
1413
kernel-side v0.2.0 behaviour changes (see the root
1514
[`../CHANGELOG.md`](../CHANGELOG.md) — `execute_direct`,
16-
`wait_timeout` removal, `CLOSED`-as-success fix). Intended for
17-
downstream-driver adoption in `databricks-sql-connector[kernel]`.
15+
`wait_timeout` removal, `CLOSED`-as-success fix) plus the pyo3-side
16+
fix below. Intended for downstream-driver adoption in
17+
`databricks-sql-connector[kernel]`.
18+
19+
### Fixed
20+
- `auth_type="oauth-u2m"` now defaults scopes to `["sql", "offline_access"]`
21+
when the caller passes neither `client_id` nor `scopes` (#153). The
22+
Python binding defaults the U2M client to `databricks-sql-python` (vs.
23+
the kernel's `databricks-cli`), but that client isn't registered for
24+
the `all-apis` scope the kernel intrinsically defaults to — so an
25+
out-of-the-box `Session(auth_type="oauth-u2m")` failed the
26+
authorization request with `access_denied — Scopes 'all-apis' are not
27+
assigned to the client databricks-sql-python`. Defaults now match
28+
`PYSQL_OAUTH_SCOPES` in the standalone Thrift connector, restoring
29+
`use_kernel=True` parity. A caller-supplied `client_id` or `scopes` is
30+
still honoured verbatim.
1831

1932
## [v0.1.2] - 2026-06-06
2033

‎pyo3/NEXT_CHANGELOG.md‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,6 @@ changes go in the root `NEXT_CHANGELOG.md`.
1616
### Updated
1717

1818
### Fixed
19-
- `auth_type="oauth-u2m"` now defaults scopes to `["sql", "offline_access"]`
20-
when the caller passes neither `client_id` nor `scopes`. The Python binding
21-
defaults the U2M client to `databricks-sql-python` (vs. the kernel's
22-
`databricks-cli`), but that client isn't registered for the `all-apis` scope
23-
the kernel intrinsically defaults to — so an out-of-the-box
24-
`Session(auth_type="oauth-u2m")` failed the authorization request with
25-
`access_denied — Scopes 'all-apis' are not assigned to the client
26-
databricks-sql-python`. Defaults now match `PYSQL_OAUTH_SCOPES` in the
27-
standalone Thrift connector, restoring `use_kernel=True` parity. A
28-
caller-supplied `client_id` or `scopes` is still honoured verbatim.
2919

3020
---
3121
*Note: When making changes, please add your change under the appropriate

0 commit comments

Comments
 (0)