lquerel / gcp-bigquery-client

GCP BigQuery Client (Rust)
Apache License 2.0
97 stars 64 forks source link

How to propagate location setting to Job configuration #48

Closed MikhailMS closed 1 year ago

MikhailMS commented 1 year ago

Hello there,

It may be a bit of a silly question, but how can one propagate location setting when creating job against BigQuery table? Something like your pagination.rs example, but with location set?

Looking through the source code/docs it is not really obvious where it needs to be set - I'd assume it to be part of JobConfigurationQuery but doesn't look like that struct has a location field

I tried to use ConnectionProperty (which is field of JobConfigurationQuery) but doesn't look like a correct option And as far as I can see here JobConfigurationQuery is the only thing which is can be passed down to the actual call to create the job

Would definitely appreciate some help on this one :)

UPD: Found this LoC - so one can specify location of the job, however it seems not be exposed when calling client.job().query_all - so feels like a small bug (unless I am missing something else here)