diff --git a/redash/query_runner/big_query.py b/redash/query_runner/big_query.py index c208ccbad7..61e1b38acd 100644 --- a/redash/query_runner/big_query.py +++ b/redash/query_runner/big_query.py @@ -115,7 +115,8 @@ def configuration_schema(cls): }, 'location': { "type": "string", - 'title': 'Processing Location (default: US)', + "title": "Processing Location", + "default": "US", }, 'loadSchema': { "type": "boolean", @@ -156,8 +157,7 @@ def _get_project_id(self): return self.configuration["projectId"] def _get_location(self): - location = self.configuration.get("location", "") - return "US" if location == "" else location + return self.configuration.get("location", "US") def _get_total_bytes_processed(self, jobs, query): job_data = { @@ -318,7 +318,8 @@ def configuration_schema(cls): }, 'location': { "type": "string", - 'title': 'Processing Location (default: US)', + "title": "Processing Location", + "default": "US", }, 'loadSchema': { "type": "boolean",