Skip to content

fix(bqjdbc): fallback to RestAPI if ReadAPI is not accessible#13018

Open
logachev wants to merge 2 commits intomainfrom
kirl/fallback_paginated_api
Open

fix(bqjdbc): fallback to RestAPI if ReadAPI is not accessible#13018
logachev wants to merge 2 commits intomainfrom
kirl/fallback_paginated_api

Conversation

@logachev
Copy link
Copy Markdown
Contributor

@logachev logachev commented May 6, 2026

b/506217300

ReadAPI requires separate set of permissions, if authenticated user has no access to use it, fallback to a regular paginated API instead of returning an error.

Added info-level log with job/query ID and result row #.

@logachev logachev requested review from a team as code owners May 6, 2026 04:52
Copy link
Copy Markdown
Contributor

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

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 fallback mechanism in BigQueryStatement that reverts to the Standard JSON API if the Read API fails due to a permission denied error. It also includes logging enhancements and unit tests for the new logic. Feedback focuses on expanding the exception check to include ApiException and using an iterative approach to traverse exception chains. Additionally, a compilation error in the test suite regarding a missing class prefix for assertEquals needs to be addressed.

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