SamWheating commented on code in PR #34018:
URL: https://github.com/apache/airflow/pull/34018#discussion_r1313510284


##########
airflow/providers/google/cloud/operators/bigquery.py:
##########
@@ -443,6 +443,10 @@ def execute(self, context: Context) -> None:  # type: 
ignore[override]
                     method_name="execute_complete",
                 )
             self._handle_job_error(job)
+            # job.result() returns a RowIterator. Mypy expects an instance of 
SupportsNext[Any] for
+            # the next() call which the RowIterator does not resemble to. 
Hence, ignore the arg-type error.
+            records = next(job.result())  # type: ignore[arg-type]
+            self.check_value(records)

Review Comment:
   Oh interesting, nice catch!



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to