josh-fell commented on code in PR #28995:
URL: https://github.com/apache/airflow/pull/28995#discussion_r1072810552
##########
airflow/providers/apache/hive/transfers/mysql_to_hive.py:
##########
@@ -143,12 +143,15 @@ def execute(self, context: Context):
encoding="utf-8",
)
field_dict = OrderedDict()
- for field in cursor.description:
- field_dict[field[0]] = self.type_map(field[1])
+ if cursor.description is not None:
+ for field in cursor.description:
+ field_dict[field[0]] = self.type_map(field[1])
+ for field in cursor.description:
+ field_dict[field[0]] = self.type_map(field[1])
Review Comment:
Looks like a duplicate set?
--
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]