Repository navigation
Closed
Description
Summary
Surfaced by the multi-language coverage fan-out while conformance-testing these SPEC-IDs against databricks/databricks-sql-python. Each finding is committed as an expected-failure (xfail) test in the coverage PR — the test asserts the CORRECT (post-fix) behavior and stays red until THIS driver (databricks/databricks-sql-python) is fixed, then flips green as a tripwire.
Findings
- CLOUDFETCH-012 [sea]: use_cloud_fetch=False is silently ignored on the kernel (SEA) backend: KernelDatabricksClient.execute_command takes the flag and never uses it and open_session passes no CloudFetch toggle to databricks_sql_kernel.Session, so a disabled-CloudFetch connection still receives external links (2 presigned-URL downloads observed) where Thrift pages the full 250k-row result inline with zero downloads
- failing test:
test_cloud_fetch_disabled_configuration(see the coverage PR diff undertests/)
- failing test:
- CLOUDFETCH-012: use_cloud_fetch=False is silently ignored on the kernel (SEA) backend: KernelDatabricksClient.execute_command takes the flag and never uses it and open_session passes no CloudFetch toggle to databricks_sql_kernel.Session, so a disabled-CloudFetch connection still receives external links (2 presigned-URL downloads observed) where Thrift correctly pages the full 250k-row result inline with zero downloads
Reproduce & Expected
CLOUDFETCH-012 — With CloudFetch DISABLED at the connection level, the driver must deliver the COMPLETE result through the SQL connection itself and perform ZERO cloud-storage downloads -- for a result large enough t…
Reproduce:
- Execute the test query on a connection with CloudFetch disabled and drain
EVERY batch to exhaustion. The full drain is the point: a driver that stops
after the first page still satisfies a "some rows came back" check, and only
the exact row count catches it.
Expected (per the shared spec):
- completes without an exception
- result has exactly 250000 row(s)
- result has 2 column(s)
- col 0 is named
id - col 1 is named
payload - col 0, row 0 == 0 (type Int64)
- [thrift] exactly 0
cloud_downloadcall(s) - [sea] exactly 0
cloud_downloadcall(s) - full assertion contract:
result:
- no_exception: true
- row_count: 250000
- column_count: 2
- column:
index: 0
name: id
- column:
index: 1
name: payload
- column:
index: 0
row: 0
type: Int64
equals: 0
protocol:
thrift:
- call_count:
method: cloud_download
expected: 0
- call_min:
method: FetchResults
min: 1
sea:
- call_count:
operation: cloud_download
expected: 0
- call_min:
operation: FetchResultChunk
min: 1Context
- The behavior was first fixed in a DIFFERENT driver — reference PR: fix(results): fetch paged results with CloudFetch disabled databricks-sql-kernel#436 — which seeded the shared language-neutral spec. This issue tracks the same conformance gap in databricks/databricks-sql-python; the reference PR is for cross-referencing the intended behavior, NOT a change to this repo.
- Coverage PR carrying the reproducing xfail test(s): https://github.com/databricks/databricks-driver-test/pull/2032
Metadata
Metadata
Assignees
Labels
No labels
Activity