hussein-awala commented on code in PR #33857:
URL: https://github.com/apache/airflow/pull/33857#discussion_r1309288674


##########
airflow/providers/google/cloud/operators/bigquery.py:
##########
@@ -1039,7 +1039,7 @@ def execute(self, context: Context):
             self.log.info("Total extracted rows: %s", len(rows))
 
             if self.as_dict:
-                table_data = [{k: v for k, v in row.items()} for row in rows]
+                table_data = [dict(row.items()) for row in rows]

Review Comment:
   It is enough!
   ```python
   >>> from google.cloud.bigquery.table import Row
   >>> row = Row(('a', 'b'), {'x': 0, 'y': 1})
   >>> dict(row)
   {'x': 'a', 'y': 'b'}
   >>> dict(row.items())
   {'x': 'a', 'y': 'b'}
   ```



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

Reply via email to