Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: databricks/databricks-sql-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.5.0
Choose a base ref
...
head repository: databricks/databricks-sql-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.6.0
Choose a head ref
  • 7 commits
  • 21 files changed
  • 5 contributors

Commits on Sep 4, 2026

  1. 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]>
    vuanhphung authored Sep 4, 2026
    Configuration menu
    Copy the full SHA
    2213169 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2026

  1. docs: correct connection parameter reference (#943)

    Signed-off-by: Vu Anh Phung <[email protected]>
    vuanhphung authored Sep 5, 2026
    Configuration menu
    Copy the full SHA
    13e8af4 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2026

  1. 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]>
    rahuls-db and Isaac authored Sep 10, 2026
    Configuration menu
    Copy the full SHA
    696e780 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2026

  1. 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]>
    cathleeny authored Sep 16, 2026
    Configuration menu
    Copy the full SHA
    70427d7 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2026

  1. chore: upgrade SQL kernel to 1.1.0 (#955)

    Signed-off-by: Vu Anh Phung <[email protected]>
    vuanhphung authored Sep 23, 2026
    Configuration menu
    Copy the full SHA
    2dc47c0 View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2026

  1. 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]>
    jonathanberthias authored Sep 24, 2026
    Configuration menu
    Copy the full SHA
    f0ef715 View commit details
    Browse the repository at this point in the history
  2. Bump to version 4.6.0 (#957)

    Signed-off-by: Vu Anh Phung <[email protected]>
    vuanhphung authored Sep 24, 2026
    Configuration menu
    Copy the full SHA
    a7406b5 View commit details
    Browse the repository at this point in the history
Loading