diff --git a/CHANGELOG.md b/CHANGELOG.md index b69f1d504..21c81f39b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Release History # Unreleased +- Upgrade Databricks SQL Kernel to 1.5.0, avoiding redundant status requests when asynchronous kernel statements complete. +- Reduce overhead when fetching buffered kernel results, checking for end of results, and closing drained cursors. +- Fix file-descriptor leaks when closing kernel connections, including OAuth connections. +- Keep kernel CloudFetch downloads progressing across result pages and respond to cancellation during prefetch. +- Omit presigned CloudFetch URL query strings, including signatures, from kernel request errors and debug logs. +- Preserve affected-row counts from immediately completed kernel statements without consuming result rows. - 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`. - Fix the kernel backend ignoring `use_cloud_fetch=False`, so complete results can be fetched without cloud-storage downloads. - 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)) diff --git a/KERNEL_REV b/KERNEL_REV index de1b52ca7..2add322e2 100644 --- a/KERNEL_REV +++ b/KERNEL_REV @@ -1 +1 @@ -0b5d0edfed32c0745d5abc2468fc3070e2eb2a17 +5c3a909771f749174567af074bfe18c24a335f5c diff --git a/poetry.lock b/poetry.lock index ea8605fab..6a7505540 100644 --- a/poetry.lock +++ b/poetry.lock @@ -497,19 +497,19 @@ ssh = ["bcrypt (>=3.1.5)"] [[package]] name = "databricks-sql-kernel" -version = "1.4.0" +version = "1.5.0" description = "Python bindings for the Databricks SQL Kernel (PyO3)" optional = true python-versions = ">=3.9" groups = ["main"] markers = "extra == \"kernel\"" files = [ - {file = "databricks_sql_kernel-1.4.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:d7888fe54bb5b47c15741557495a0910c0ccb57297c99197c7e4092d963d398f"}, - {file = "databricks_sql_kernel-1.4.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:bd8b72af9e72a55e300d55bc793f2f3ed107dfbc0370e6180a13390b5f365865"}, - {file = "databricks_sql_kernel-1.4.0-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:9f6ed61f8571840b310a1b7e11d26891586268436c1a967dd029a8ef56038957"}, - {file = "databricks_sql_kernel-1.4.0-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:7d1d92fca31d6e50600b248db053738c5df6bbe1cac7d6f1ba4dffb60cd2991f"}, - {file = "databricks_sql_kernel-1.4.0-cp39-abi3-win_amd64.whl", hash = "sha256:9d91bc753638991ca17970d6547f156c56309fc7782c73b3dddcf40c209838d5"}, - {file = "databricks_sql_kernel-1.4.0.tar.gz", hash = "sha256:4cd4f9296b853d610f4bf082eb8dfd86eb2701df7097af6b77414ef176cf229f"}, + {file = "databricks_sql_kernel-1.5.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:99f2a9c55091c92aa70bf01cd3abd290c7e02896836759ce8c273acbee170f72"}, + {file = "databricks_sql_kernel-1.5.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:a2d22f4ca43763516116e420a19c08597fe80b98996cc7420620df8d1662faea"}, + {file = "databricks_sql_kernel-1.5.0-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:8d4f9882265446b91a0ee8d944d6a63b168eabcbbb4cbcf0cf4174a2d6e7a428"}, + {file = "databricks_sql_kernel-1.5.0-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:3a8a5eda0f6bcbe12a8c9a9426230902021667fa39fc8e19da688d630f0454c6"}, + {file = "databricks_sql_kernel-1.5.0-cp39-abi3-win_amd64.whl", hash = "sha256:9fa535d02fd9e1dfc574097bc7729bad154355b2320fe6ab00e3da192c64d7c9"}, + {file = "databricks_sql_kernel-1.5.0.tar.gz", hash = "sha256:4e48a9c117930f01ec050b7acecedb05685df7661db3791e789ae1d0394574bd"}, ] [package.dependencies] @@ -2057,4 +2057,4 @@ pyarrow = ["pyarrow", "pyarrow", "pyarrow"] [metadata] lock-version = "2.1" python-versions = "^3.10" -content-hash = "bd560a68822615b0af6e21116e0765f2c34610f4ee8d043b4ae34fea7111a404" +content-hash = "379036c1d3da438060dca0c756ea2e16a08ae09e22d88191f25ffbbba099eead" diff --git a/pyproject.toml b/pyproject.toml index 947b1c996..26a91416f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -67,10 +67,10 @@ requests-kerberos = {version = "^0.15.0", optional = true} # is ``abi3`` with ``Requires-Python: >=3.9`` (built ``abi3-py39``); the # dependency remains gated to the connector's Python >= 3.10 support floor. # -# Floor is 1.4.0 (``^1.4.0`` == ``>=1.4.0,<2.0.0``), allowing compatible +# Floor is 1.5.0 (``^1.5.0`` == ``>=1.5.0,<2.0.0``), allowing compatible # 1.x releases while keeping the next major upgrade deliberate. The kernel's # pyarrow constraint remains >=23.0.1,<24. -databricks-sql-kernel = {version = "^1.4.0", optional = true, python = ">=3.10"} +databricks-sql-kernel = {version = "^1.5.0", optional = true, python = ">=3.10"} [tool.poetry.extras]