Skip to content

JCO-35 Expose an internal API for the JDBC driver to use#5

Merged
dnault merged 1 commit intomainfrom
JCO-35-jdbc-http-client
Feb 17, 2026
Merged

JCO-35 Expose an internal API for the JDBC driver to use#5
dnault merged 1 commit intomainfrom
JCO-35-jdbc-http-client

Conversation

@dnault
Copy link
Contributor

@dnault dnault commented Feb 5, 2026

Motivation

The JDBC driver needs to make different HTTP requests than the standard Analytics SDK. Rather than expand the SDK's public API, we'll expose an internal low-level client the JDBC driver can use to execute custom HTTP requests.

Modifications

Add InternalUnsupportedHttpClient with methods for executing ad hoc HTTP requests and streaming query results.

Use an interceptor to add the "Authorization" header, so all requests get authenticated regardless of code path.

Extract RawQueryMetadata out of AnalyticsResponseParser to minimize the API surface area exposed to the JDBC driver. The internal methods that previously returned QueryMetadata now return RawQueryMetadata -- which has all the fields required by the JDBC driver.

Motivation
----------
The JDBC driver needs to make different HTTP requests than the
standard Analytics SDK. Rather than expand the SDK's public API,
we'll expose an internal low-level client the JDBC driver can use
to execute custom HTTP requests.

Modifications
-------------
Add `InternalUnsupportedHttpClient` with methods for executing
ad hoc HTTP requests and streaming query results.

Use an interceptor to add the "Authorization" header,
so all requests get authenticated regardless of code path.

Extract `RawQueryMetadata` out of `AnalyticsResponseParser`
to minimize the API surface area exposed to the JDBC driver.
The internal methods that previously returned `QueryMetadata`
now return `RawQueryMetadata` -- which has all the fields
required by the JDBC driver.
Copy link
Member

@toad-sage toad-sage left a comment

Choose a reason for hiding this comment

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

LGTM, Thanks!

@dnault dnault merged commit 933c82d into main Feb 17, 2026
5 checks passed
@dnault dnault deleted the JCO-35-jdbc-http-client branch February 27, 2026 17:41
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.

2 participants