Content-Length: 263855 | pFad | https://github.com/apache/airflow/commit/a35c0d42cce17fd0647d58f247a8bb9b8b8fab60

93 replace unnecessary dict comprehension by dict() in providers (#33857) · apache/airflow@a35c0d4 · GitHub
Skip to content

Commit a35c0d4

Browse files
replace unnecessary dict comprehension by dict() in providers (#33857)
* replace unacessary dict comprehension by dict() in providers * Update airflow/providers/google/cloud/operators/bigquery.py Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com> --------- Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
1 parent eaf3471 commit a35c0d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

airflow/providers/google/cloud/operators/bigquery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ def execute(self, context: Context):
10391039
self.log.info("Total extracted rows: %s", len(rows))
10401040

10411041
if self.as_dict:
1042-
table_data = [{k: v for k, v in row.items()} for row in rows]
1042+
table_data = [dict(row) for row in rows]
10431043
else:
10441044
table_data = [row.values() for row in rows]
10451045

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/apache/airflow/commit/a35c0d42cce17fd0647d58f247a8bb9b8b8fab60

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy