Repository navigation
fix(pyo3): allow pyarrow 24-26 so consumers can clear CVE-2026-92287 - #501
Merged
Merged
Conversation
The published wheel declared pyarrow>=23.0.1,<24 for Python 3.10+, which made `pip install "databricks-sql-connector[kernel]" "pyarrow>=26"` unresolvable; pyarrow 26.0.0 is the first release without CVE-2026-92287 (apache/arrow#51349). The ceiling moves to <27, keeping the major-version bound the pinning policy requires. Python 3.10 resolves to 25.x because pyarrow 26 requires Python 3.11. Adds tests/test_dependency_bounds.py, which reads the installed Requires-Dist and fails if the 3.10+ range drops back below 26.0.0 or excludes the installed pyarrow. Refs databricks/databricks-sql-python#1076 Signed-off-by: Shimin Lin <135086178+shiminlin-db@users.noreply.github.com>
Co-authored-by: Isaac <no-reply@databricks.com> Signed-off-by: Shimin Lin <135086178+shiminlin-db@users.noreply.github.com>
…packaging Unreleased wheel changes belong in pyo3/NEXT_CHANGELOG.md; CHANGELOG.md only moves at release time. The entry now also names the behavior change for unpinned [kernel] installs (pyarrow 23 -> 26 on 3.11+, 25 on 3.10) and the pin that opts out. The pyproject comment now states what was tested (24.0.0, 25.0.1, 26.0.1) instead of a blanket stability claim, and the dev group declares packaging, which tests/test_dependency_bounds.py imports. Co-authored-by: Isaac <no-reply@databricks.com> Signed-off-by: Shimin Lin <135086178+shiminlin-db@users.noreply.github.com>
shiminlin-db
temporarily deployed
to
azure-prod
November 23, 2026 21:24 — with
GitHub Actions
Inactive
shiminlin-db
temporarily deployed
to
azure-prod
November 23, 2026 21:24 — with
GitHub Actions
Inactive
shiminlin-db
temporarily deployed
to
azure-prod
November 23, 2026 21:24 — with
GitHub Actions
Inactive
shiminlin-db
temporarily deployed
to
azure-prod
November 23, 2026 21:24 — with
GitHub Actions
Inactive
shiminlin-db
temporarily deployed
to
azure-prod
November 23, 2026 21:24 — with
GitHub Actions
Inactive
shiminlin-db
temporarily deployed
to
azure-prod
November 23, 2026 21:24 — with
GitHub Actions
Inactive
shiminlin-db
temporarily deployed
to
azure-prod
November 23, 2026 21:24 — with
GitHub Actions
Inactive
There was a problem hiding this comment.
🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).
Verdict: 1 Low
Looks good, with 1 low concern. The ceiling bump keeps the required major-version upper bound, nothing in the repo still mentions <24, and the new metadata test runs in CI because maturin develop installs dist-info and the dev group includes packaging.
`uv sync` resolves the newest pyarrow inside the bound, so after widening the range to `>=23.0.1,<27` the default matrix legs never exercised 23.x. One extra leg (Python 3.12) pins pyarrow==23.0.1 after the sync so a kernel change that breaks on the oldest supported pyarrow fails CI. The default legs keep their check names. Co-authored-by: Isaac <no-reply@databricks.com> Signed-off-by: Shimin Lin <135086178+shiminlin-db@users.noreply.github.com>
Resolves the pyo3-checks.yml conflict with the fork-CI split (#497): keeps main's job `if:` and permissions, and carries the pyarrow floor leg into both the trusted and the fork job so they stay aligned. Co-authored-by: Isaac <no-reply@databricks.com> Signed-off-by: Shimin Lin <135086178+shiminlin-db@users.noreply.github.com>
shiminlin-db
temporarily deployed
to
azure-prod
November 24, 2026 00:42 — with
GitHub Actions
Inactive
shiminlin-db
temporarily deployed
to
azure-prod
November 24, 2026 00:42 — with
GitHub Actions
Inactive
shiminlin-db
temporarily deployed
to
azure-prod
November 24, 2026 00:42 — with
GitHub Actions
Inactive
shiminlin-db
temporarily deployed
to
azure-prod
November 24, 2026 00:42 — with
GitHub Actions
Inactive
shiminlin-db
temporarily deployed
to
azure-prod
November 24, 2026 00:42 — with
GitHub Actions
Inactive
shiminlin-db
temporarily deployed
to
azure-prod
November 24, 2026 00:42 — with
GitHub Actions
Inactive
shiminlin-db
temporarily deployed
to
azure-prod
November 24, 2026 00:42 — with
GitHub Actions
Inactive
shiminlin-db
temporarily deployed
to
azure-prod
November 24, 2026 00:42 — with
GitHub Actions
Inactive
shiminlin-db
temporarily deployed
to
azure-prod
November 24, 2026 00:42 — with
GitHub Actions
Inactive
Signed-off-by: Vu Anh Phung <vu.phung@databricks.com>
There was a problem hiding this comment.
🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).
✅ No issues identified.
🔀 1 finding considered and dismissed by the judge
- 🔵 Low
.github/workflows/pyo3-checks.yml:94— The new floor leg covers only the 3.10+ floor (23.0.1). The 3.9 range (>=14,<19) still runs only at 18.x, so a kernel change that breaks pyarrow 14 still won'
Judge's evidence:so the default legs only ever see the top of '>=23.0.1,<27'.
vuanhphung
approved these changes
Dec 2, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
databricks-sql-kerneldeclaredpyarrow>=23.0.1,<24for Python 3.10+, sopip install "databricks-sql-connector[kernel]" "pyarrow>=26"was unresolvable (databricks/databricks-sql-python#1076). pyarrow 26.0.0 is the first release without CVE-2026-92287 (apache/arrow#51349, a Parquet KMS token disclosure affecting 8.0.0 <= pyarrow < 26.0.0). This binding never calls that Parquet decryption path, but dependency scanners flag every affected pyarrow, and the ceiling kept consumers from upgrading.pyo3/pyproject.toml: ceiling<24-><27for Python >= 3.10. Floor unchanged. Keeps the major-version upper bound the pinning policy (cited in the file) requires. pyarrow 26 needs Python >= 3.11, so 3.10 resolves to 25.x; the 3.9 range (>=14,<19) is untouched.packagingis declared in the dev group because the new test imports it.pyo3/tests/test_dependency_bounds.py: reads the installedRequires-Distand fails if the 3.10+ range excludes 26.0.0 or the installed pyarrow.pyo3/NEXT_CHANGELOG.md: Unreleased entry.Compatibility
No API change, and the floor is unchanged, so any install that pins pyarrow keeps resolving. The behavior change is for unpinned
[kernel]installs: they move from pyarrow 23.x to 26.x on Python 3.11+ (25.x on 3.10), three majors of a package the user's own code may import. Opt-out is a user-side pin (pyarrow<24), which still resolves; a code-level switch does not apply to a dependency range. The binding exports batches through arrow-pyarrow 59'sToPyArrow, which calls pyarrow's private_import_from_cAPI.Validation
pytest tests/ --ignore tests/test_dependency_bounds.pyinpyo3/-> 21 passed, 37 skipped (live tier, no creds) each, including the loopback Arrow handoff tests intest_fetch.py. (The new test is excluded there because it fails by design against the shipped<24metadata.)databricks-sql-pythonmain @ 087b2bff (v4.9.0 plus 17 commits) real-kernel unit tests (-m realkernel,test_kernel_async_readers.py+test_session.py) with kernel 1.5.0 + pyarrow 26.0.1 on 3.12: 8 passed.<24metadata on 3.12 and 3.10; passes against installed metadata carrying<27.uv pip compile pyo3/pyproject.toml: 3.12 -> pyarrow 26.0.1, 3.10 -> 25.0.1, 3.9 -> 18.1.0;--group devresolvespackaging26.3.uv syncresolves the newest pyarrow inside the bound, thenmaturin develop+ pytest on 3.9-3.14) is the build-from-source check for this PR.Follow-up
databricks-sql-connectoralready requiresdatabricks-sql-kernel>=1.4.0,<2.0.0behind[kernel], so publishing a kernel release with this bound is what unblockspip install "databricks-sql-connector[kernel]" "pyarrow>=26"; no connector change is needed for that. The connector's devpoetry.lock(pyarrow 23.0.1) and itspyproject.tomlcomment about the kernel'spyarrow<24constraint get refreshed in a separate connector PR once the release is out.Refs databricks/databricks-sql-python#1076
This pull request and its description were written by Isaac.