jmcarp opened a new pull request #10774: URL: https://github.com/apache/airflow/pull/10774
The `list_prefixes` and `list_keys` methods of the s3 hook return lists if the result isn't empty, and `None` otherwise. Some operators that use these methods break when the result is empty, because they expect to receive a list and not `None`. We could change the operators to handle `None`, but I think it makes more sense to return an empty list when the prefix or key list is empty instead. This matches the behavior of the aws sdk, and I think an empty list is a more reasonable return value than `None` if no prefixes or keys match the query. ---------------------------------------------------------------- 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]
