Open m0ar opened 4 years ago
Please reach out if you need any more information to fix this :pray:
A suggested fix would be to let google.datalab.bigquery.Query.__init__
also take an optional argument location
, set this as an instance attribute, and use that in the args
map for this, and possibly other relevant calls.
We are trying to use a Datalab instance, but even the simple examples fail as the library can't find the results of our queries. The actual BQ job does get executed (which we have manually verified), but the result can't be fetched back to datalab, which errors out:
I have faced the exact same issue when using the Elixir API, and the solution was to add the optional argument
location: "europe-north1"
. This exact issue is at play in the datalab bigquery library, since the location is not passed with theargs
here:https://github.com/googledatalab/pydatalab/blob/1d6865237fdc8d184123d1e89193578da56d73b3/datalab/bigquery/_api.py#L237
We have verified this is the problem, as this little snippet successfully gets the status of the job:
Worth mentioning is also that the docs lists
location
explicitly as optional for EU and US, which then is obviously not true. This has confused us before.