Skip to content

cloudfetch_enabled=false synthesises CAN_CLOUD_DOWNLOAD conf that SEA rejects (CONFIG_NOT_AVAILABLE) #196

Closed

Description

@eric-wang-1990

Summary

Setting ResultConfig::cloudfetch_enabled = false makes the session unusable: the kernel synthesises a CAN_CLOUD_DOWNLOAD SEA session-conf key that the Databricks SEA backend rejects, so the first ExecuteStatement fails with CONFIG_NOT_AVAILABLE.

Reproduction

Open a session with cloudfetch_enabled = false and run any query:

let mut rc = ResultConfig::default();
rc.cloudfetch_enabled = false;
let session = Session::builder().http_path(host, path).auth(pat).result(rc).open().await?; // OK
session.statement().spec().sql("SELECT * FROM samples.tpch.lineitem");
let exec = stmt.execute().await; // FAILS

Observed (live, Dogfood SEA warehouse, 2026-07-24)

  • Session::open() succeeds — the server accepts the conf at CreateSession.
  • The first ExecuteStatement fails:
Error { code: SqlError,
  message: "[CONFIG_NOT_AVAILABLE.WITHOUT_SUGGESTION] Configuration CAN_CLOUD_DOWNLOAD is not available.  SQLSTATE: 42K0I",
  sql_state: Some("42K0I"), error_code: Some("BAD_REQUEST"), retryable: false }

Impact

cloudfetch_enabled = false (the documented opt-out that should route results inline) is currently unusable against SEA — any statement on such a session fails. Reference: src/config.rs (CAN_CLOUD_DOWNLOAD synthesis when cloudfetch_enabled = false) and src/session.rs (session_conf wiring).

Expected

Either (a) the kernel uses an opt-out channel the SEA server accepts, or (b) it does not send CAN_CLOUD_DOWNLOAD when the server doesn't support it, so the statement succeeds and results are served inline.

Context

Found while auditing databricks-driver-test kernel coverage (CLOUDFETCH-012). Tracked there as kernel: bug with a #[should_panic] xfail tripwire asserting the fixed behaviour (statement succeeds inline); it flips RED when this is fixed.

Activity

  1. added
    engineer-bot
    on Aug 10, 2026
  2. oss-engineer-bot commented on Aug 10, 2026

    @oss-engineer-bot

    🤖 engineer-bot could not complete an automated fix. See the workflow run for details.

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

    engineer-bot

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions