Skip to content

Skip unused Python HTTP client for explicit kernel connections - #1017

Draft
aakash-saravanan-db wants to merge 1 commit into
mainfrom
aakash-saravanan/skip-kernel-http-client
Draft

aakash-saravanan-db wants to merge 1 commit into
mainfrom
aakash-saravanan/skip-kernel-http-client

Conversation

@aakash-saravanan-db

@aakash-saravanan-db aakash-saravanan-db commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

What type of PR is this?

  • Bug Fix

Description

sql.connect(use_kernel=True) builds a Python HTTP client, including SSL setup, even though the Rust kernel uses its own transport.

Skip that unused client for explicit kernel connections and handle its absence during setup. Thrift, legacy SEA and automatic fallback keep their existing client.

In an HTTP-only benchmark with 800 concurrent connections, median connect time fell from 7.291 s to 3.369 s. This was a single-run comparison; warehouse warm/load effects were not isolated.

How is this tested?

  • Unit tests

  • 1,334 unit tests passed (four skipped), plus eight real-kernel tests covering connection lifecycle and sync/async result reads.

  • Mypy, Black and git diff --check pass.

Live TLS/proxy and external-cloud validation was not rerun.

Related Tickets & Documents

RE-17633

This branch was successfully deployed

1 active deployment
azure-prod — 42f0c48c Deployed Nov 10, 2026 by aakash-saravanan-db via test-with-coverage #1031
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.

1 participant