Skip to content

[coverage] Conformance findings: CLOUDFETCH-012,CLOUDFETCH-204201,CLOUDFETCH-204202 #450

Open

Description

@oss-engineer-bot

Summary

Surfaced by the multi-language coverage fan-out while conformance-testing these SPEC-IDs against databricks/databricks-sql-kernel. 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-kernel) is fixed, then flips green as a tripwire.

Findings

  • CLOUDFETCH-012: the CloudFetch-disable opt-out (cloudfetch_enabled=false) sends disposition=INLINE while leaving format=ARROW_STREAM, so SEA rejects every statement with HTTP 400 INVALID_PARAMETER_VALUE "The format field must be JSON_ARRAY when the disposition field is INLINE" — the opt-out is unusable, no result is delivered at all
  • CLOUDFETCH-204201: with CloudFetch disabled a large result is not delivered completely through the SQL connection — execute fails before any page because disposition=INLINE is sent with format=ARROW_STREAM (HTTP 400 INVALID_PARAMETER_VALUE), a third outcome the contract forbids and distinct from the permitted CONFIG_NOT_AVAILABLE/42K0I server branch
  • CLOUDFETCH-204202: the dedicated-option-vs-session-conf precedence cannot be exercised because the dedicated option itself is unusable: disposition=INLINE with format=ARROW_STREAM is rejected (HTTP 400 INVALID_PARAMETER_VALUE) before the server evaluates the conflicting can_cloud_download conf

Reproduce & Expected

CLOUDFETCH-012 — Validates that when the driver's CloudFetch-disable option is set, no CloudFetch activity occurs: the result is delivered through the SQL connection and the driver performs ZERO cloud-storage downloa…

Reproduce:

  • Execute query with CloudFetch disabled

Expected (per the shared spec):

  • completes without an exception
  • result has at least 1 row(s)
  • full assertion contract:
result:
- no_exception: true
- row_count_min: 1
protocol:
  thrift:
  - cloud_downloads:
      expected: 0
  - call_min:
      method: FetchResults
      min: 1
  sea:
  - cloud_downloads:
      expected: 0

CLOUDFETCH-204201 — With CloudFetch disabled, a result LARGER than a single inline response must still be delivered COMPLETELY through the SQL connection — every row, in order, with no truncation and no partial/silent s…

Reproduce:

SELECT id, sha2(CAST(id AS STRING), 512) AS payload FROM range(50000) ORDER BY id

Expected (per the shared spec):

  • full assertion contract:
result:
- either_condition_true:
  - row_count: 50000
  - error:
      contains:
      - CONFIG_NOT_AVAILABLE
      - 42K0I
protocol:
  thrift:
  - cloud_downloads:
      expected: 0
  - call_min:
      method: FetchResults
      min: 1
  sea:
  - cloud_downloads:
      expected: 0

CLOUDFETCH-204202 — The dedicated CloudFetch-disable option and a raw session parameter can both speak to cloud-download delivery.

Reproduce:

SELECT id, sha2(CAST(id AS STRING), 512) AS payload FROM range(50000) ORDER BY id

Expected (per the shared spec):

  • full assertion contract:
result:
- either_condition_true:
  - row_count: 50000
  - error:
      contains:
      - CONFIG_NOT_AVAILABLE
      - 42K0I
protocol:
  sea:
  - cloud_downloads:
      expected: 0

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