eladkal commented on a change in pull request #16160:
URL: https://github.com/apache/airflow/pull/16160#discussion_r642054200



##########
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:
       No. I was thinking of converting the type to List (if needed) so the 
logic part of the code won't need any modification as it works fine with List 
type. something like:
   ```
   if isinstance(obj, str):
      obj=[obj]
   ```




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


Reply via email to