Repository navigation
Comparing changes
Open a pull request
base repository: databricks/databricks-sql-python
base: a22ac63
head repository: databricks/databricks-sql-python
compare: a7406b5
- 7 commits
- 21 files changed
- 5 contributors
Commits on Sep 4, 2026
-
feat(kernel): forward _pool_maxsize (#940)
* feat(kernel): forward _pool_maxsize Signed-off-by: Vu Anh Phung <[email protected]> * fix(kernel): gate max connections kwarg Signed-off-by: Vu Anh Phung <[email protected]> * chore(kernel): bump pinned revision Signed-off-by: Vu Anh Phung <[email protected]> * refactor(kernel): pass max connections directly Signed-off-by: Vu Anh Phung <[email protected]> * fix(kernel): gate max connections by wheel support Signed-off-by: Vu Anh Phung <[email protected]> * docs(kernel): clarify max connections version Signed-off-by: Vu Anh Phung <[email protected]> * fix(kernel): normalize zero pool maxsize Signed-off-by: Vu Anh Phung <[email protected]> --------- Signed-off-by: Vu Anh Phung <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2213169 - Browse repository at this point
Copy the full SHA 2213169View commit details
Commits on Sep 5, 2026
-
docs: correct connection parameter reference (#943)
Signed-off-by: Vu Anh Phung <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 13e8af4 - Browse repository at this point
Copy the full SHA 13e8af4View commit details
Commits on Sep 10, 2026
-
feat: auto-recover Reyden Thrift connections onto the kernel (#948)
* feat: auto-recover Reyden Thrift connections onto the kernel An unconfigured connect() to a Reyden / Real-Time SQL warehouse defaults to the Thrift backend, which the SQL Gateway proxy rejects with SQLSTATE KP001. Detect that rejection at OpenSession and transparently re-open the session on the kernel backend, and remember the warehouse (process-wide cache keyed by (host, warehouse_id), ~6h TTL) so subsequent connects skip the doomed Thrift attempt. Only the default path auto-recovers; an explicit use_kernel/use_sea is always honored. Co-authored-by: Isaac <[email protected]> Signed-off-by: Rahul Singhal <[email protected]> * fix: attribute recovered-kernel connection failures to the kernel for telemetry The connection-failure telemetry suppression read the original connect() kwargs to decide whether the failed connection was a kernel connection. On the Reyden auto-recovery path the kernel retry uses a kwargs copy, so the original still said Thrift — a kernel open-failure was logged by the wrapper despite the kernel owning telemetry for kernel connections. Decide from the session that actually failed (self.session.use_kernel) instead. If the kernel was never constructed (e.g. its wheel is missing), self.session stays Thrift and the wrapper still logs, so that otherwise-invisible failure is still recorded. Co-authored-by: Isaac <[email protected]> Signed-off-by: Rahul Singhal <[email protected]> * refactor: scope KP001 Reyden detection to OpenSession only _check_response_for_error runs for every Thrift RPC, so mapping KP001 to the recoverable marker there gave it a wider blast radius than the recovery logic (which only wraps session open): a stray KP001 on any other RPC would have surfaced as ReydenThriftUnsupportedError with no handler. Gate the mapping behind a detect_reyden flag that make_request sets only for the OpenSession method (mirroring the existing method.__name__ discrimination). Every other RPC now surfaces a KP001 as a generic DatabaseError, unchanged from before. Co-authored-by: Isaac <[email protected]> Signed-off-by: Rahul Singhal <[email protected]> * Fix telemetry test mocks to set session.use_kernel The connection-failure telemetry suppression reads session.use_kernel, but these tests mock Session, so use_kernel was a truthy MagicMock — which suppressed the wrapper failure log and broke test_connection_failure_sends_correct_telemetry_payload. Set use_kernel explicitly on the mock (False for the default Thrift case, True for the kernel case) to reflect production. Co-authored-by: Isaac <[email protected]> Signed-off-by: Rahul Singhal <[email protected]> * Mirror the Thrift auth default onto the Reyden kernel recovery path On auto-recovery the Thrift default of auth_type=None (implicitly databricks-oauth) was forwarded unchanged to the kernel, which has no such fallback and rejects auth_type=None unless a PAT/M2M credential shape is present — so a bare OAuth-U2M connection failed to recover. Inject auth_type=databricks-oauth on the default-path kernel retry when auth_type is unset and no credential shape is present, mirroring Thrift; skip it when a credential shape exists so kernel routing is unchanged. Also correct the warehouse-cache docstring: warehouse ids are globally unique, so there is no cross-workspace collision on a shared SPOG host; the host component is an optimization, not a correctness requirement. Co-authored-by: Isaac <[email protected]> Signed-off-by: Rahul Singhal <[email protected]> --------- Signed-off-by: Rahul Singhal <[email protected]> Co-authored-by: Isaac <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 696e780 - Browse repository at this point
Copy the full SHA 696e780View commit details
Commits on Sep 16, 2026
-
fix: validate mTLS client identity files (#951)
* fix: validate mTLS client identity files Signed-off-by: Cathleen Yan <[email protected]> * test: isolate auth routing from TLS file loading Signed-off-by: Cathleen Yan <[email protected]> * refactor: make kernel TLS options contract explicit Signed-off-by: Cathleen Yan <[email protected]> --------- Signed-off-by: Cathleen Yan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 70427d7 - Browse repository at this point
Copy the full SHA 70427d7View commit details
Commits on Sep 23, 2026
-
chore: upgrade SQL kernel to 1.1.0 (#955)
Signed-off-by: Vu Anh Phung <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2dc47c0 - Browse repository at this point
Copy the full SHA 2dc47c0View commit details
Commits on Sep 24, 2026
-
Guard RedactUrlQueryParamsFilter against None args (#947)
urllib3.connectionpool records can arrive with record.args set to None when another logging filter (e.g. MLflow's SensitiveQueryParamFilter) redacts the message and nulls args before this filter runs. Iterating None raised TypeError. Guard the tuple branch with an explicit None check. Also fix a latent typo in the dict-args branch: record.arg[k] should be record.args[k], which would raise AttributeError whenever a record carried dict args. Fixes #946 Signed-off-by: Jonathan Berthias <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f0ef715 - Browse repository at this point
Copy the full SHA f0ef715View commit details -
Signed-off-by: Vu Anh Phung <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a7406b5 - Browse repository at this point
Copy the full SHA a7406b5View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff a22ac63...a7406b5