File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
sdk/python/feast/infra/offline_stores Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ def get_historical_features(
133133 assert isinstance (config .offline_store , BigQueryOfflineStoreConfig )
134134
135135 table_reference = _get_table_reference_for_new_entity (
136- client , client .project , config .offline_store .dataset
136+ client , client .project , config .offline_store .dataset , config . offline_store . location
137137 )
138138
139139 @contextlib .contextmanager
@@ -332,13 +332,13 @@ def _wait_until_done(bq_job):
332332
333333
334334def _get_table_reference_for_new_entity (
335- client : Client , dataset_project : str , dataset_name : str
335+ client : Client , dataset_project : str , dataset_name : str , dataset_location : str
336336) -> str :
337337 """Gets the table_id for the new entity to be uploaded."""
338338
339339 # First create the BigQuery dataset if it doesn't exist
340340 dataset = bigquery .Dataset (f"{ dataset_project } .{ dataset_name } " )
341- dataset .location = "US"
341+ dataset .location = dataset_location
342342
343343 try :
344344 client .get_dataset (dataset )
You can’t perform that action at this time.
0 commit comments