dirrao commented on code in PR #38408: URL: https://github.com/apache/airflow/pull/38408#discussion_r1536548308
########## airflow/providers/google/cloud/operators/bigquery.py: ########## @@ -322,8 +322,26 @@ def execute(self, context: Context): ), 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] Review Comment: next call call might returns a row object not row iterator. -- 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: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org