Skip to content

fix(bigquery): forward universe domain to BigQueryReadSettings in ConnectionImpl - #15200

Merged
lqiu96 merged 3 commits into
googleapis:mainfrom
lqiu96:fix/bq-connection-universe-domain
Nov 24, 2026
Merged

lqiu96 merged 3 commits into
googleapis:mainfrom
lqiu96:fix/bq-connection-universe-domain

Conversation

@lqiu96

@lqiu96 lqiu96 commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Extracts ConnectionImpl.createBigQueryReadSettings() and forwards bigQueryOptions.getUniverseDomain() when non-null to BigQueryReadSettings.newBuilder(), matching BigQueryImpl.configureReadSettings. Also uses NoCredentialsProvider.create() when bigQueryOptions.getCredentials() is null, and adds unit tests in ConnectionImplTest covering custom universe domain, default universe domain, resolved endpoint, and null credentials.

…nectionImpl

Forward bigQueryOptions.getUniverseDomain() when constructing BigQueryReadSettings in ConnectionImpl.highThroughPutRead, matching BigQueryImpl.configureReadSettings.

Also handle null credentials via NoCredentialsProvider.create() and add unit tests in ConnectionImplTest.

Related to b/588887572.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a helper method createBigQueryReadSettings in ConnectionImpl to properly configure BigQueryReadSettings with credentials and the universe domain from bigQueryOptions. It also updates highThroughPutRead to use this helper method and adds corresponding unit tests to verify that the universe domain and credentials are correctly forwarded. I have no further feedback to provide as the changes are well-implemented and covered by tests.

@lqiu96
lqiu96 requested a review from jinseopkim0 November 24, 2026 18:29
@lqiu96
lqiu96 marked this pull request as ready for review November 24, 2026 18:29
@lqiu96
lqiu96 requested review from a team as code owners November 24, 2026 18:29
@lqiu96
lqiu96 enabled auto-merge (squash) November 24, 2026 18:34
@lqiu96
lqiu96 merged commit 5cd6025 into googleapis:main Nov 24, 2026
202 checks passed
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