Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Feat: adds credentials and project properties to BigQueryClient#2276

Closed
chalmerlowe wants to merge 1 commit into
feat-copperpenny-update-client-methodsfrom
feat-adds-creds-project-properties
Closed

Feat: adds credentials and project properties to BigQueryClient#2276
chalmerlowe wants to merge 1 commit into
feat-copperpenny-update-client-methodsfrom
feat-adds-creds-project-properties

Conversation

@chalmerlowe
Copy link
Copy Markdown
Collaborator

This PR adds the credentials and project property to the BigQueryClient class as a response to a comment on a previous PR.

Project: Comment about making project a property
Credentials: Comment about adding credentials

@chalmerlowe chalmerlowe requested review from a team and tswast and removed request for a team September 4, 2025 12:41
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. api: bigquery Issues related to the googleapis/python-bigquery API. labels Sep 4, 2025
@chalmerlowe chalmerlowe assigned chalmerlowe and unassigned Neenu1995 Sep 4, 2025
@chalmerlowe chalmerlowe marked this pull request as draft September 4, 2025 12:45
@chalmerlowe
Copy link
Copy Markdown
Collaborator Author

Need to add unit tests for this functionality.

/en/latest/user-guide.html#obtaining-credentials
"""
if self._properties["credentials"] is None:
self._properties["credentials"], _ = google.auth.default()
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.

google.auth can be a relatively expensive call. Many years ago, it was regularly taking 30+ seconds. It's thankfully usually faster than that, but still is something we should aim to do once if possible.

@chalmerlowe
Copy link
Copy Markdown
Collaborator Author

Overtaken by events. Superceded by another PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: bigquery Issues related to the googleapis/python-bigquery API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants