Skip to content

Bump thrift to 0.23.0#796

Open
leoromanovsky wants to merge 1 commit into
databricks:mainfrom
leoromanovsky:fix/thrift-0.23.0
Open

Bump thrift to 0.23.0#796
leoromanovsky wants to merge 1 commit into
databricks:mainfrom
leoromanovsky:fix/thrift-0.23.0

Conversation

@leoromanovsky
Copy link
Copy Markdown

@leoromanovsky leoromanovsky commented May 20, 2026

Motivation

databricks-sql-connector currently constrains thrift with ~=0.22.0, which prevents downstream consumers from resolving thrift 0.23.0. Issue #783 requests allowing thrift 0.23.0 so consumers can pick up the latest thrift security fixes.

Fixes #783.

cc @Korijn @jprakash-db

Changes

  • Widen the runtime thrift constraint to >=0.22.0,<0.24.0.
  • Regenerate poetry.lock so the lockfile selects thrift 0.23.0 and includes the updated thrift extras metadata.

Decisions

  • Kept 0.22.0 as the lower bound so existing compatible installs remain valid.
  • Capped the dependency at <0.24.0 to allow the 0.23.x line without automatically accepting a future thrift minor release.

Validation

  • uvx --from poetry==2.3.1 poetry check --lock passes with existing Poetry deprecation warnings.
  • poetry install -E pyarrow installs thrift 0.23.0, pyarrow 22.0.0, and the current project.
  • poetry run python -c 'from importlib.metadata import version; print(version("thrift"))' reports 0.23.0.
  • PYTHONPATH=src poetry run python -c 'import thrift.transport.THttpClient; import thrift.protocol.TBinaryProtocol; from databricks.sql.backend.thrift_backend import ThriftDatabricksClient; print("ok")' passes.
  • poetry run python -m pytest tests/unit/test_thrift_backend.py -rs passes: 66 passed in 6.92s.
  • poetry run python -m pytest tests/unit passes: 742 passed, 4 skipped in 103.76s.
  • poetry build -f wheel succeeds; inspected wheel metadata contains Requires-Dist: thrift (>=0.22.0,<0.24.0).

Widen the thrift runtime dependency to >=0.22.0,<0.24.0 so downstream consumers can resolve thrift 0.23.0.

Fixes: databricks#783
Signed-off-by: Leo Romanovsky <leo.romanovsky@datadoghq.com>
@leoromanovsky leoromanovsky marked this pull request as ready for review May 20, 2026 14:52
Copilot AI review requested due to automatic review settings May 20, 2026 14:52
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR widens the Apache Thrift runtime dependency constraint so downstream consumers can resolve thrift==0.23.0 (and the 0.23.x line) to pick up upstream security fixes, while still keeping 0.22.0 compatible installs valid.

Changes:

  • Relax thrift dependency from ~=0.22.0 to >=0.22.0,<0.24.0 in pyproject.toml.
  • Regenerate poetry.lock to select thrift==0.23.0 and update its extras metadata.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
pyproject.toml Widens the allowed Thrift version range to include 0.23.x while excluding 0.24+.
poetry.lock Updates locked Thrift version to 0.23.0 and refreshes lock metadata accordingly.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Release new version with thrift >=0.23.0 support (6 critical CVEs fixed)

2 participants