You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to use the to_gbq method to both create dataset and the table, the method fails when setting the location other than US.
The reason is that the location is not respected when creating dataset, so it defaults to US. However, trying to launch a LoadJob with location='EU' when the dataset is in the US leads to failure.
I can try fixing it by passing the location argument down to constructors of _Table and _Dataset, and then here in the create method of _Dataset doing something like:
if self.location is not None:
dataset.location = self.location
If you OK it I will test and submit a PR. Is there a better way?
The text was updated successfully, but these errors were encountered:
When trying to use the
to_gbq
method to both create dataset and the table, the method fails when setting the location other thanUS
.The reason is that the location is not respected when creating dataset, so it defaults to
US
. However, trying to launch a LoadJob withlocation='EU'
when the dataset is in theUS
leads to failure.Steps to reproduce:
where
my_dataset
doesn't exist.I can try fixing it by passing the
location
argument down to constructors of_Table
and_Dataset
, and then here in thecreate
method of_Dataset
doing something like:If you OK it I will test and submit a PR. Is there a better way?
The text was updated successfully, but these errors were encountered: