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

bqr_get_job only works for datasets in US or EU location #71

Open
ekocsis3 opened this issue Apr 26, 2021 · 1 comment
Open

bqr_get_job only works for datasets in US or EU location #71

ekocsis3 opened this issue Apr 26, 2021 · 1 comment

Comments

@ekocsis3
Copy link
Contributor

Hi,

When uploading data to BQ with the bqr_upload_data() function to a dataset not located in the US or EU, the function returns an error even though the upload is successful. See the example below when uploading to the bigQueryR_test dataset, located in 'europe-west3'.

I've traced the issue back to the bqr_get_job() function. Currently, it does not add a location query parameter to the API call, which is required for non-US/EU locations. (https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/get)

I'd be to happy to add this param to the function if you agree.

Screenshot 2021-04-26 at 13 59 23

@MarkEdmondson1234
Copy link
Collaborator

MarkEdmondson1234 commented Apr 26, 2021

Thanks! Yes looks like the bqr_get_job() needs to either parse out from the job object the region and/or allow a region parameter. I think the code was made before there were sub-regions available.

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

No branches or pull requests

2 participants