Skip to content

Commit 4e200b4

Browse files
authored
bigquery load schema diff locations ignore (#7289)
* diff locations ignore * add logging message * Processing Location is not specified
1 parent 5ae1f70 commit 4e200b4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

redash/query_runner/big_query.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,10 @@ def get_schema(self, get_stats=False):
313313
queries = []
314314
for dataset in datasets:
315315
dataset_id = dataset["datasetReference"]["datasetId"]
316+
location = dataset["location"]
317+
if self._get_location() and location != self._get_location():
318+
logger.debug("dataset location is different: %s", location)
319+
continue
316320
query = query_base.format(dataset_id=dataset_id)
317321
queries.append(query)
318322

0 commit comments

Comments
 (0)