Skip to content

Support also configuring BigQuery in JSON #1575

@jonespm

Description

@jonespm

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions