Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion rust/datafusion/src/physical_plan/repartition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ impl ExecutionPlan for RepartitionExec {
let input = self.input.clone();
let mut channels = channels.clone();
let partitioning = self.partitioning.clone();
let _: JoinHandle<Result<()>> = tokio::spawn(async move {
let join_handle: JoinHandle<Result<()>> = tokio::spawn(async move {
let mut stream = input.execute(i).await?;
let mut counter = 0;
while let Some(result) = stream.next().await {
Expand Down Expand Up @@ -157,6 +157,7 @@ impl ExecutionPlan for RepartitionExec {
}
Ok(())
});
join_handle.await.map(|_| ()).map_err(|e| DataFusionError::Execution(e.to_string()))?;
}
}

Expand Down