Skip to content

[coverage] Conformance findings: CLOUDFETCH-012 #1044

Closed

Description

@oss-engineer-bot

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 under tests/)
  • 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_download call(s)
  • [sea] exactly 0 cloud_download call(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: 1

Context

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions