Skip to content

fix(gcp-bigquery): add CloudError handling and injectable auth#163

Open
atharva-nagane wants to merge 1 commit into
c2siorg:mainfrom
atharva-nagane:fix/bigquery-cloud-error
Open

fix(gcp-bigquery): add CloudError handling and injectable auth#163
atharva-nagane wants to merge 1 commit into
c2siorg:mainfrom
atharva-nagane:fix/bigquery-cloud-error

Conversation

@atharva-nagane

@atharva-nagane atharva-nagane commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Closes #162

Migrates BigQuery to return CloudError instead of Box<dyn std::error::Error>, checking the HTTP status on every response and mapping 4xx/5xx to the right variant via a new map_bigquery_http_error helper.

Adds Arc<dyn TokenProvider> injection and a with_http_client constructor, mirroring the pattern already used by VertexAiProvider, so the client can be exercised in tests without a service account file.

Moves the existing live tests behind #[ignore] and adds unit tests for URL building, error mapping, and token refresh.

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.

BigQuery client lacks typed errors, injectable auth, and HTTP error handling

1 participant