pitrou commented on a change in pull request #9656: URL: https://github.com/apache/arrow/pull/9656#discussion_r590476604
########## File path: cpp/src/arrow/util/future.h ########## @@ -628,6 +628,10 @@ Future<std::vector<Result<T>>> All(std::vector<Future<T>> futures) { std::atomic<size_t> n_remaining; }; + if (futures.empty()) { + return Future<std::vector<Result<T>>>::MakeFinished(std::vector<Result<T>>()); + } Review comment: Add a trivial test for this? ---------------------------------------------------------------- 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: us...@infra.apache.org