alamb commented on code in PR #6449:
URL: https://github.com/apache/arrow-datafusion/pull/6449#discussion_r1207091236
##########
datafusion/core/src/physical_plan/coalesce_partitions.rs:
##########
@@ -199,6 +200,28 @@ impl Stream for MergeStream {
cx: &mut std::task::Context<'_>,
) -> Poll<Option<Self::Item>> {
let poll = self.input.poll_recv(cx);
+
+ // If the input stream is done, wait for all tasks to finish and return
+ // the failure if any.
+ if let Poll::Ready(None) = poll {
+ let fut = self.tasks.join_next();
Review Comment:
It seems like this only checks the first future that finishes. Would it work
if there were multiple input tasks and the first one that finished was not the
one that `panic`d?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]