Skip to content

Commit a26d0e0

Browse files
committed
fixes #1958
Signed-off-by: François Serra <francois.serra@adeo.com>
1 parent b39c2a8 commit a26d0e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sdk/python/feast/infra/offline_stores/bigquery.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

334334
def _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)

0 commit comments

Comments
 (0)