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 188aec4
Browse filesBrowse the repository at this point in the historyBrowse files
feat(kernel): run Volume PUT, GET and REMOVE on the kernel backend
The kernel backend sets the Volume options on every statement before it
runs, so the kernel transfers the file of a PUT, GET or REMOVE inside
execute. staging_allowed_local_path becomes the allowed directories (an
empty list when unset, which still allows a REMOVE, as on Thrift), and
execute(input_stream=...) supplies the bytes for PUT '__input_stream__'.
A Volume result returns no rows, and local path and storage errors raise
the exceptions the Thrift backend raises. Removes the guard that refused
staging statements on the kernel backend.
Pins KERNEL_REV to databricks-sql-kernel#521.
Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
# Unreleased
4
4
- Honor `_port` and `_connection_uri` on kernel connections (`use_kernel=True`), as Thrift does. Requires a databricks-sql-kernel release that includes databricks/databricks-sql-kernel#505.
5
5
- Speed up `fetchone()`, `fetchmany()` and `fetchall()` by building each result `Row` with fewer Python calls. The rows are unchanged. Large results and many concurrent cursors in one process benefit most.
6
+
- Support Volume `PUT`, `GET` and `REMOVE` on the kernel backend (`use_kernel=True`), including `input_stream` uploads. Local paths, with symlinks resolved, must be within `staging_allowed_local_path`.
6
7
7
8
# 4.10.0 (2026-11-24)
8
9
- Upgrade Databricks SQL Kernel to 1.5.0, with lower overhead for buffered fetches and closing drained cursors, and Arrow and Quinn security updates.
|`_socket_timeout`|`float` (s) | ✅ | ✅ |`900` (Thrift); `120` (kernel) | Thrift: socket send/recv/connect timeout. Kernel: total HTTP request deadline from connect through response-body completion. A positive value is forwarded; unset or `0` selects the kernel's 120s default. On the kernel path, `0` is neither unlimited nor an immediate timeout. |
117
+
|`_socket_timeout`|`float` (s) | ✅ | ✅ |`900` (Thrift); `120` (kernel) | Thrift: socket send/recv/connect timeout. Kernel: total HTTP request deadline from connect through response-body completion. A positive value is forwarded; unset or `0` selects the kernel's 120s default. On the kernel path, `0` is neither unlimited nor an immediate timeout. For a Volume file transfer, the kernel uses it as an idle limit instead. |
118
118
|`_pool_connections`|`int`| ⚠️ | ❌ |`10`| Number of pools in the shared Python HTTP client. On Thrift this affects auxiliary auth/feature-flag/telemetry traffic, not the separate Thrift query transport. Kernel-owned network traffic does not use this client. |
119
119
|`_pool_maxsize`|`int`| ⚠️ | ⚠️ |`20` (Python); `100` (kernel when unset) | Max idle connections retained per host. It configures the shared Python client but not the Thrift query transport. With kernel ≥ 1.1.0, a positive value also configures the kernel's Rust HTTP pool. Unset or `0` keeps each client's default. |
120
120
|`_proxy_auth_method`|`str`| ✅ | ❌ |`None`|`basic` or `negotiate` (Kerberos). Applied to both Thrift query traffic and the shared Python client. It is not forwarded to the kernel's Rust transport. See [`docs/proxy.md`](docs/proxy.md). |
@@ -191,7 +191,7 @@ environment. The backends differ for SOCKS proxies:
191
191
|`use_inline_params`|`bool`\|`"silent"`| ✅ | ✅ |`False`| Render parameters inline (legacy) vs. native bound params (DBR 14.1+). Shared cursor code performs the rendering before dispatch, so both backends honor it identically. |
192
192
|`ignore_transactions`|`bool`| ✅ | ✅ |`True`| When `True`: `commit()` is a no-op, `rollback()` raises `NotSupportedError`, and setting `autocommit` is a no-op. |
193
193
|`fetch_autocommit_from_server`|`bool`| ✅ | ✅ |`False`| Query the server (`SET AUTOCOMMIT`) for autocommit state instead of returning the cached value. |
194
-
|`staging_allowed_local_path`|`str`\|`List[str]`| ✅ |❌|`None`| Local path(s) permitted for Unity Catalog Volume `PUT`/`GET`. **Thrift-only** — the kernel has no Volume API yet. |
194
+
|`staging_allowed_local_path`|`str`\|`List[str]`| ✅ |✅|`None`| Local path(s) permitted for Unity Catalog Volume `PUT`/`GET`. The kernel also checks resolved symlink targets; see [Volume file paths](#volume-file-paths).|
195
195
196
196
## Telemetry
197
197
@@ -228,12 +228,11 @@ are forwarded when supported by the installed kernel binding.
228
228
`enable_query_result_lz4_compression`.
229
229
5. Arrow-native rendering for `_use_arrow_native_decimals` /
0 commit comments