eladkal commented on a change in pull request #16160:
URL: https://github.com/apache/airflow/pull/16160#discussion_r642038157
##########
File path: airflow/providers/google/cloud/transfers/gcs_to_bigquery.py
##########
@@ -286,7 +286,7 @@ def execute(self, context):
else:
schema_fields = self.schema_fields
- source_uris = [f'gs://{self.bucket}/{source_object}' for source_object
in self.source_objects]
+ source_uris = [f'gs://{self.bucket}/{source_object}' for source_object
in self.source_objects] if type(self.source_objects) is list else
[f'gs://{self.bucket}/{self.source_objects}']
Review comment:
Wouldn't it be better to convert the string to list and then the code
will work just fine without a special case for string?
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]