potix2 commented on a change in pull request #11434:
URL: https://github.com/apache/airflow/pull/11434#discussion_r504024870
##########
File path: airflow/providers/amazon/aws/transfers/gcs_to_s3.py
##########
@@ -183,7 +183,7 @@ def execute(self, context):
self.log.info("Saving file to %s", dest_key)
s3_hook.load_bytes(
- file_bytes, key=dest_key, replace=self.replace,
acl_policy=self.s3_acl_policy
+ file_bytes.encode(), key=dest_key, replace=self.replace,
acl_policy=self.s3_acl_policy
Review comment:
S3Hook.load_bytes() requires `bytes` but `file_bytes` is string, so I
call encode() to convert string to bytes. The reason why some tests got error
in CI might be this modification.
----------------------------------------------------------------
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]