Skip to content

Commit 6bc721f

Browse files
refactor(kernel): group HTTP/2 option validation
Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com>
1 parent d517411 commit 6bc721f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/databricks/sql/backend/kernel/client.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,6 @@ def __init__(
359359
# The kernel binding owns type and range validation.
360360
self._request_timeout_secs = kwargs.get("request_timeout_secs")
361361
self._max_connections = kwargs.get("max_connections")
362-
self._http2_kwargs = _kernel_http2_kwargs(kwargs.get("enable_http2"))
363362
self._use_cloud_fetch = kwargs.get("use_cloud_fetch", True)
364363
self._max_download_threads = kwargs.get("max_download_threads", 16)
365364
if (
@@ -368,6 +367,7 @@ def __init__(
368367
or self._max_download_threads <= 0
369368
):
370369
raise ValueError("max_download_threads must be a positive integer")
370+
self._http2_kwargs = _kernel_http2_kwargs(kwargs.get("enable_http2"))
371371
# Opt-in native GEOMETRY / GEOGRAPHY support. True requests
372372
# the canonical Arrow struct and surfaces as ``{"srid": int, "wkb":
373373
# bytes}`` through pyarrow; False requests WKT / EWKT strings. This is

0 commit comments

Comments
 (0)