turbaszek commented on a change in pull request #8273: BigQueryCheckOperator 
location fix
URL: https://github.com/apache/airflow/pull/8273#discussion_r408708954
 
 

 ##########
 File path: airflow/providers/google/cloud/hooks/bigquery.py
 ##########
 @@ -2442,10 +2442,17 @@ def next(self) -> Union[List, None]:
             if self.all_pages_loaded:
                 return None
 
-            query_results = (self.service.jobs().getQueryResults(
-                projectId=self.project_id,
-                jobId=self.job_id,
-                
pageToken=self.page_token).execute(num_retries=self.num_retries))
+            if self.location:
+                query_results = (self.service.jobs().getQueryResults(
+                    projectId=self.project_id,
+                    jobId=self.job_id,
+                    location=self.location,
+                    
pageToken=self.page_token).execute(num_retries=self.num_retries))
+            else:
+                query_results = (self.service.jobs().getQueryResults(
+                    projectId=self.project_id,
+                    jobId=self.job_id,
+                    
pageToken=self.page_token).execute(num_retries=self.num_retries))
 
 Review comment:
   @edejong thanks!

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to