You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bad2b25
Browse filesBrowse the repository at this point in the historyBrowse files
The kernel now validates the port and applies it to the host, so the
driver drops its own port handling: `_port_or_none` (falsy/string
parsing and the 1..65535 check), the 443 drop, and the wheel-capability
gate. A set `_port` reaches the kernel's `port=` unchanged; an invalid
value raises the kernel's ValueError. `_connection_uri` parsing and the
OAuth origin guard are unchanged.
KERNEL_REV moves to the kernel PR head (403ef24), and the docs describe
the kernel's rules: IPv6 hosts need brackets, and errors never repeat
the host.
Signed-off-by: Cathleen Yan <58714163+cathleeny@users.noreply.github.com>
Co-authored-by: Isaac <no-reply@databricks.com>
|`http_path`|`str`| ✅ | ✅ | — (required) | Thrift accepts a SQL-warehouse path **or** an all-purpose-cluster path; Kernel requires a warehouse/endpoint path. |
76
-
|`_port`|`int`| ✅ | ✅ |`443`| TCP port (advanced). On Kernel the kernel applies it: a port other than 443 makes the connection use `host:port` (bare IPv6 is bracketed); `0`, unset and `443` change nothing; a port embedded in `server_hostname` wins over a differing `_port` (with a warning). Needs a databricks-sql-kernel release that includes databricks-sql-kernel#505. |
76
+
|`_port`|`int`| ✅ | ✅ |`443`| TCP port (advanced). On Kernel it is passed to the kernel as is, which validates and applies it: a port other than 443 makes the connection use `host:port`; `0`, unset and `443` change nothing; a non-default port embedded in `server_hostname` wins over a differing `_port` (with a warning). An IPv6 host needs brackets (`[::1]`). An invalid port raises `ValueError`; a host that can't take the port raises `ProgrammingError`, and the error never repeats the host. Needs a databricks-sql-kernel release that includes databricks-sql-kernel#505. |
77
77
|`_connection_uri`|`str`| ✅ | ✅ |`None`| Overrides `server_hostname`, `_port` and `http_path` on both, and wins over `_port`. On Kernel with OAuth, the URI origin must match `server_hostname`, and OAuth uses the same host:port as the connection (Thrift keeps OAuth on the bare host). An `access_token` that is exchanged counts as OAuth here: a JWT from an issuer other than `server_hostname`, or any token with `identity_federation_client_id`. |
78
78
|`http_headers`|`List[Tuple[str, str]]`| ✅ | ⚠️ |`None`| Extra headers sent on requests. Kernel filters `Authorization` and `x-databricks-org-id` because it manages them itself; other headers are forwarded. |
79
79
|`user_agent_entry`|`str`| ✅ | ✅ |`None`| Custom tag folded into the composed `User-Agent` on both. (`_user_agent_entry` is a deprecated alias that warns.) |
0 commit comments