BigQuery: Support loading credentials from JSON file#13052
BigQuery: Support loading credentials from JSON file#13052ebyhr wants to merge 1 commit intoapache:mainfrom
Conversation
85687dc to
09050d8
Compare
| HttpCredentialsAdapter httpCredentialsAdapter = | ||
| new HttpCredentialsAdapter( | ||
| GoogleCredentials.getApplicationDefault().createScoped(BigqueryScopes.all())); | ||
| new HttpCredentialsAdapter(credentials.createScoped(BigqueryScopes.all())); |
There was a problem hiding this comment.
@ebyhr Do you think we should also pass credentials for FileIO ? With this change FileIO and Bigquery may end up different credentials fyi
|
This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the [email protected] list. Thank you for your contributions. |
09050d8 to
af62aa0
Compare
|
This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the [email protected] list. Thank you for your contributions. |
af62aa0 to
4d7ec79
Compare
GoogleCredentials.getApplicationDefault()relies onGOOGLE_APPLICATION_CREDENTIALSenvironment variable.This property allows users to access multiple BigQuery projects more easily.
Fixes #13036