Skip to content

Commit 12855a7

Browse files
docs: clarify environment proxy protocol settings
Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com>
1 parent 1b895c6 commit 12855a7

3 files changed

Lines changed: 6 additions & 4 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. Configured proxies force HTTP/1.1.
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.
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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ Install using `pip install databricks-sql-connector[pyarrow]`
3939
The kernel negotiates HTTP/2 for HTTPS requests, with HTTP/1.1 fallback when the
4040
peer does not support HTTP/2. Pass `enable_http2=False` with `use_kernel=True` to
4141
force HTTP/1.1 for authentication, SQL requests, result downloads, and telemetry.
42-
Configured proxies force HTTP/1.1 for the entire kernel client.
42+
Nonempty `HTTP_PROXY`, `HTTPS_PROXY`, or `ALL_PROXY` environment variables
43+
(including lowercase forms) force HTTP/1.1 for the entire kernel client.
4344

4445
Install using `pip install databricks-sql-connector[kernel]`
4546

‎src/databricks/sql/client.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,9 @@ def __init__(
197197
Kernel backend only. Negotiate HTTP/2 for HTTPS requests, with
198198
HTTP/1.1 fallback when the peer does not support HTTP/2. Set
199199
``False`` to force HTTP/1.1 for authentication, SQL requests,
200-
result downloads, and telemetry. Configured proxies force
201-
HTTP/1.1 for the entire kernel client.
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.
202203
:param enable_geospatial_support: `bool`, optional (default is False)
203204
Kernel backend only. Controls the public representation of
204205
``GEOMETRY`` and ``GEOGRAPHY`` result values. ``True`` returns

0 commit comments

Comments
 (0)