mirror of
https://github.com/getredash/redash.git
synced 2025-12-19 17:37:19 -05:00
bigquery load schema diff locations ignore (#7289)
* diff locations ignore * add logging message * Processing Location is not specified
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user