Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support also configuring BigQuery in JSON #1575

Open
jonespm opened this issue Apr 23, 2024 · 0 comments
Open

Support also configuring BigQuery in JSON #1575

jonespm opened this issue Apr 23, 2024 · 0 comments

Comments

@jonespm
Copy link
Member

jonespm commented Apr 23, 2024

Thank you for contributing to this project!

Describe your problem or feature you'd like added

For the BigQuery config in the cron we rely on the bigquery defined in a JSON file referenced in the environment.

GOOGLE_APPLICATION_CREDENTIALS=/secrets/bq_cred.json

However in the latest versions of the library, we can also pull the settings from the main config instead:

self.bigquery_client = bigquery.Client.from_service_account_json(settings.BIGQUERY_SERVICE_ACCOUNT_JSON)

This might simply the setup a little bit. The old method should still work.

@jonespm jonespm changed the title Support also BigQuery config in JSON Support also configuring BigQuery in JSON May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant