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

Permit Bigquery output to create jobs in a different project #2532

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Roviluca
Copy link

Bigquery allows to have 3 different projects involved when querying Bigquery:

  1. The project where the service account is created
  2. The project where the job is created
  3. The project where the data is stored.

The current implementation does not allow this flexibility.
if the project is set the job will be created in the Dataset's project, otherwise the client tries to use bigquery.DetectProjectID that returns the service account's project and searches the dataset in there.

With this PR I added the possibility to set JobProjectID so that users can have the flexibility to set the 3 parameters with different values.

Signed-off-by: luca.rovi <Roviluca@users.noreply.github.com>
Signed-off-by: luca.rovinetti <luca.rovinetti@justeattakeaway.com>
@Roviluca
Copy link
Author

Hello @Jeffail does this PR make sense or do you prefer me do approach this in another way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant