"When sending requests, the location must be specified for jobs whose location not "US" or "EU"".
This requires a lot of annoying boilerplate, when the app uses a single location, which isn't US/EU. Namely for Tokyo now a JobId has to be provided to every call, which can be easily forgotten, hence breaking the app.
Just like projectId can be configured at BigQueryOptions and will be used later automatically, this should be also possible for location.
https://github.com/GoogleCloudPlatform/google-cloud-java/blob/4c3e3d137dfc57e6557bc49767251153dae00dab/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/JobId.java#L54-L61
"When sending requests, the location must be specified for jobs whose location not "US" or "EU"".
This requires a lot of annoying boilerplate, when the app uses a single location, which isn't US/EU. Namely for Tokyo now a
JobIdhas to be provided to every call, which can be easily forgotten, hence breaking the app.Just like
projectIdcan be configured atBigQueryOptionsand will be used later automatically, this should be also possible forlocation.https://github.com/GoogleCloudPlatform/google-cloud-java/blob/4c3e3d137dfc57e6557bc49767251153dae00dab/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/JobId.java#L54-L61