Repository navigation
feat: Add support for disabling CloudFetch via EnableQueryResultDownload parameter - #1183
Merged
vikrantpuppala merged 3 commits intoJan 19, 2026
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR enables users to toggle between CloudFetch (URL-based result download) and inline Arrow results by exposing the existing EnableQueryResultDownload connection parameter through a new API method. The implementation maintains backward compatibility with the default behavior (CloudFetch enabled).
Changes:
- Added
isCloudFetchEnabled()method to the connection context interface and implementation - Updated the Thrift service client to use the new method when setting the
canDownloadResultflag - Added comprehensive test coverage for both enabled and disabled CloudFetch scenarios
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/main/java/com/databricks/jdbc/api/internal/IDatabricksConnectionContext.java | Added interface method isCloudFetchEnabled() with clear documentation explaining CloudFetch behavior |
| src/main/java/com/databricks/jdbc/api/impl/DatabricksConnectionContext.java | Implemented isCloudFetchEnabled() method using the existing ENABLE_CLOUD_FETCH parameter |
| src/main/java/com/databricks/jdbc/dbclient/impl/thrift/DatabricksThriftServiceClient.java | Updated to call isCloudFetchEnabled() when setting canDownloadResult for protocols that support CloudFetch |
| src/test/java/com/databricks/jdbc/api/impl/DatabricksConnectionContextTest.java | Added comprehensive test covering default value, URL parameter, and Properties-based configuration |
| src/test/java/com/databricks/jdbc/dbclient/impl/thrift/DatabricksThriftServiceClientTest.java | Updated existing tests to mock isCloudFetchEnabled() and added new test for CloudFetch disabled scenario |
| NEXT_CHANGELOG.md | Documented the new feature in the changelog |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Add isCloudFetchEnabled() method to IDatabricksConnectionContext interface and DatabricksConnectionContext implementation. This exposes the existing EnableQueryResultDownload parameter through the connection context API. The DatabricksThriftServiceClient now uses this method to dynamically control whether CloudFetch (URL-based result download) is enabled when making execute requests to the server. This allows toggling between CloudFetch results and inline Arrow results via the existing EnableQueryResultDownload connection parameter. Signed-off-by: Vikrant Puppala <[email protected]>
Signed-off-by: Vikrant Puppala <[email protected]>
vikrantpuppala
force-pushed
the
feat/cloud-fetch-enabled-param
branch
from
January 19, 2026 10:45
6745ebb to
110c4a6
Compare
gopalldb
approved these changes
Jan 19, 2026
vikrantpuppala
force-pushed
the
feat/cloud-fetch-enabled-param
branch
from
January 19, 2026 11:32
e0d9cb9 to
0c7b315
Compare
Signed-off-by: Vikrant Puppala <[email protected]>
vikrantpuppala
force-pushed
the
feat/cloud-fetch-enabled-param
branch
from
January 19, 2026 11:34
0c7b315 to
1619964
Compare
vikrantpuppala
added a commit
to vikrantpuppala/databricks-jdbc
that referenced
this pull request
Jan 20, 2026
Merge latest main branch to incorporate CloudFetch disable feature (PR databricks#1183) Signed-off-by: Vikrant Puppala <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add support for disabling CloudFetch via
EnableQueryResultDownload=0connection parameter to use inline Arrow results instead.Changes
isCloudFetchEnabled()method toIDatabricksConnectionContextinterfaceDatabricksConnectionContextusing existingEnableQueryResultDownloadparameterDatabricksThriftServiceClientto respect this setting when making execute requestsUsage
To disable CloudFetch and use inline Arrow results: