Skip to content

Commit

Permalink
use futures::stream
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Jun 6, 2023
1 parent 70a3d57 commit fb17af8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions datafusion/core/src/physical_plan/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,9 @@ impl RecordBatchReceiverStreamBuilder {
.filter_map(|item| async move { item });

// Merge the streams together so whichever is ready first
// produces the batch (since futures::stream:StreamExt is
// already in scope, need to call it explicitly)
// produces the batch
let inner =
tokio_stream::StreamExt::merge(ReceiverStream::new(rx), check_stream).boxed();
futures::stream::select(ReceiverStream::new(rx), check_stream).boxed();

Box::pin(RecordBatchReceiverStream { schema, inner })
}
Expand Down

0 comments on commit fb17af8

Please sign in to comment.