Skip to content

Commit cbbd342

Browse files
docs: clarify kernel HTTP protocol options
Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com>
1 parent 9a88f32 commit cbbd342

3 files changed

Lines changed: 7 additions & 13 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Release History
22

33
# Unreleased
4-
- Add kernel-only `enable_http2`: HTTPS negotiates HTTP/2 with HTTP/1.1 fallback; set `enable_http2=False` to force HTTP/1.1 for all kernel-owned HTTPS traffic. Nonempty HTTP_PROXY, HTTPS_PROXY, ALL_PROXY or lowercase equivalents force HTTP/1.1.
4+
- Kernel HTTPS traffic negotiates HTTP/2 with HTTP/1.1 fallback. Set `enable_http2=False` to force HTTP/1.1. Configured proxies also force HTTP/1.1.
55
- Honor `max_download_threads` on kernel connections, with a default download window of 16 and explicit chunk-setting overrides. Invalid values raise `ValueError` when connecting with `use_kernel=True`.
66
- Fix the kernel backend ignoring `use_cloud_fetch=False`, so complete results can be fetched without cloud-storage downloads.
77
- Fix inline parameters (`use_inline_params=True`) so a sequence directly after `IN` renders as a list again: `x IN %(ids)s` renders as `x IN (1,2,3)` instead of `x IN ARRAY(1,2,3)`, which Spark rejects. Inside the list, tuples render as rows for a multi-column `IN`, and a `set` or `frozenset` is accepted again. Sequences anywhere else still render as `ARRAY(...)` ([#629](https://github.com/databricks/databricks-sql-python/issues/629))

‎README.md‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@ Install using `pip install databricks-sql-connector[pyarrow]`
3636

3737
### Installing with the Rust kernel backend (`use_kernel=True`)
3838

39-
The kernel negotiates HTTP/2 for HTTPS requests, with HTTP/1.1 fallback when the
40-
peer does not support HTTP/2. Pass `enable_http2=False` with `use_kernel=True` to
41-
force HTTP/1.1 for authentication, SQL requests, result downloads, and telemetry.
42-
Nonempty `HTTP_PROXY`, `HTTPS_PROXY`, or `ALL_PROXY` environment variables
43-
(including lowercase forms) force HTTP/1.1 for the entire kernel client.
44-
4539
Install using `pip install databricks-sql-connector[kernel]`
4640

4741
This adds the optional [`databricks-sql-kernel`](https://pypi.org/project/databricks-sql-kernel/)
@@ -59,6 +53,9 @@ connection = sql.connect(
5953
```
6054

6155
Notes:
56+
- HTTPS uses HTTP/2 with HTTP/1.1 fallback. `enable_http2=False` or configured
57+
proxy environment variables force HTTP/1.1 for all kernel traffic, including
58+
bypassed destinations.
6259
- Requires **Python >= 3.10** (the kernel wheel is published as
6360
`cp310-abi3`). On older interpreters the `[kernel]` extra installs
6461
nothing and `use_kernel=True` raises an `ImportError`.

‎src/databricks/sql/client.py‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,9 @@ def __init__(
194194
Thrift/SEA paths, where an explicit ``True`` can still
195195
be suppressed by the feature flag.
196196
:param enable_http2: `bool`, optional (kernel default is True)
197-
Kernel backend only. Negotiate HTTP/2 for HTTPS requests, with
198-
HTTP/1.1 fallback when the peer does not support HTTP/2. Set
199-
``False`` to force HTTP/1.1 for authentication, SQL requests,
200-
result downloads, and telemetry. Nonempty HTTP_PROXY, HTTPS_PROXY,
201-
ALL_PROXY or lowercase equivalents force HTTP/1.1 for the
202-
entire kernel client.
197+
Kernel backend only. Negotiate HTTP/2 for all kernel HTTPS
198+
traffic, with HTTP/1.1 fallback. ``False`` or configured proxy
199+
environment variables force HTTP/1.1, including bypassed hosts.
203200
:param enable_geospatial_support: `bool`, optional (default is False)
204201
Kernel backend only. Controls the public representation of
205202
``GEOMETRY`` and ``GEOGRAPHY`` result values. ``True`` returns

0 commit comments

Comments
 (0)