ashb commented on a change in pull request #4571: [AIRFLOW-3419]
S3_hook.select_key is broken on Python3
URL: https://github.com/apache/airflow/pull/4571#discussion_r268388521
##########
File path: airflow/hooks/S3_hook.py
##########
@@ -272,7 +272,7 @@ def select_key(self, key, bucket_name=None,
InputSerialization=input_serialization,
OutputSerialization=output_serialization)
- return ''.join(event['Records']['Payload']
+ return ''.join(event['Records']['Payload'].decode('utf-8')
Review comment:
Should be now - I've marked it for inclusion in the release
----------------------------------------------------------------
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]
With regards,
Apache Git Services