Skip to content

fix(kernel): honor the client CloudFetch default - #574

Open
aakash-saravanan-db wants to merge 3 commits into
mainfrom
aakash-saravanan_data/fix/cloudfetch-disabled
Open

aakash-saravanan-db wants to merge 3 commits into
mainfrom
aakash-saravanan_data/fix/cloudfetch-disabled

Conversation

@aakash-saravanan-db

Copy link
Copy Markdown
Collaborator

The kernel backend ignores the DBSQLClient useCloudFetch default, so applications still download results from cloud storage when they disable it. Forward useCloudFetch: false when opening a session, preserving caller configuration and giving the disable option precedence over differently cased capability keys. Per-statement overrides remain unsupported on the kernel backend.

Validation: build, lint, type check, Prettier, and 1,510 unit tests passed. A real driver loaded the locally built dist and fetched all 250,000 rows with 32,000,000 payload bytes and the expected data hash. A proxy observed zero storage downloads when disabled and two when enabled. Matched Thrift comparisons, error recovery, reuse, and close passed for connection configuration.

Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com>

@peco-review-bot peco-review-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: 1 Nit

Looks good. The change is small and contained: the caller's configuration is copied rather than mutated, the key is removed regardless of case before being set, and queryTags still merges correctly after it, all backed by parameterized unit tests. I couldn't confirm from this repo that the kernel actually acts on the can_cloud_download session-conf key (nothing in native/ mentions it), so that rests on the PR's proxy-based validation.

Other findings

  • ⚪ Nit — CHANGELOG: the new entry is followed by a blank line, so it sits apart from the rest of the Unreleased list, and unlike its neighbours it has no PR reference (e.g. (#574)).

Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com>

@peco-review-bot peco-review-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No issues identified by the review bot.

Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com>

@peco-review-bot peco-review-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No issues identified by the review bot.

This branch was successfully deployed

1 active deployment
azure-prod — a9276ea8 Deployed Nov 11, 2026 by aakash-saravanan-db via e2e-test (22.23.4, 22_23_4) #1841
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant