From 4e200b4a0820153a3c4b801ccab5f77375c5d5d9 Mon Sep 17 00:00:00 2001 From: Lee2532 <43932570+Lee2532@users.noreply.github.com> Date: Wed, 23 Jul 2025 00:45:37 +0900 Subject: [PATCH] bigquery load schema diff locations ignore (#7289) * diff locations ignore * add logging message * Processing Location is not specified --- redash/query_runner/big_query.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/redash/query_runner/big_query.py b/redash/query_runner/big_query.py index db36344c9..760760853 100644 --- a/redash/query_runner/big_query.py +++ b/redash/query_runner/big_query.py @@ -313,6 +313,10 @@ class BigQuery(BaseSQLQueryRunner): queries = [] for dataset in datasets: dataset_id = dataset["datasetReference"]["datasetId"] + location = dataset["location"] + if self._get_location() and location != self._get_location(): + logger.debug("dataset location is different: %s", location) + continue query = query_base.format(dataset_id=dataset_id) queries.append(query)