-
Notifications
You must be signed in to change notification settings - Fork 230
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
BigQuery: Enable Access to Google Sheets-Backed Tables #3016
base: next
Are you sure you want to change the base?
Conversation
… datasource and include Drive scope, to fix issue when querying tables backed by a Google Sheet document
If I'm understanding correctly, this would add these scopes for everybody using the BigQuery datasource, correct? If that's the case, we probably want this to be configurable by the user in their @ItsMeBrianD thoughts? |
@zachstence I think this is a good approach. |
Okay @olegam - my suggestion here:
relevant section in this starts
|
Ok I added a checkmark in the configuration options to toggle the additional Drive scope as suggested by @archiewood |
I think if you merge back in next now, CI will pass - our dev branch is |
Explicitly specify scopes for service user authentication in BigQuery datasource and include Drive scope, to fix issue when querying tables backed by a Google Sheet document
Description
BigQuery supports tables backed by a Google Sheet. In the current version of Evidence it's not possible to query those tables using Service User authentication.
$ npm run sources ✔ Loading plugins & sources ----- [Processing] mysouce config_orders ✖ Error: Unknown Error
This error is not very descriptive, but looking in the Google Cloud Console logs reveal the error:
To fix this we need to include the
https://www.googleapis.com/auth/drive
scope when authenticating.After adding these lines I'm able to load data from my Google Sheet-backed BigQuery table.