Skip to content

Commit 66cd26e

Browse files
committed
revert fix
1 parent 8e7439d commit 66cd26e

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

datafusion/physical-plan/src/stream.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,6 @@ impl RecordBatchReceiverStreamBuilder {
346346
Ok(stream) => stream,
347347
};
348348

349-
let plan_display = displayable(input.as_ref()).one_line().to_string();
350-
drop(input);
351-
352349
// Transfer batches from inner stream to the output tx
353350
// immediately.
354351
while let Some(item) = stream.next().await {
@@ -359,15 +356,18 @@ impl RecordBatchReceiverStreamBuilder {
359356
if output.send(item).await.is_err() {
360357
debug!(
361358
"Stopping execution: output is gone, plan cancelling: {}",
362-
plan_display
359+
displayable(input.as_ref()).one_line()
363360
);
364361
return Ok(());
365362
}
366363

367364
// Stop after the first error is encountered (Don't
368365
// drive all streams to completion)
369366
if is_err {
370-
debug!("Stopping execution: plan returned error: {}", plan_display);
367+
debug!(
368+
"Stopping execution: plan returned error: {}",
369+
displayable(input.as_ref()).one_line()
370+
);
371371
return Ok(());
372372
}
373373
}

0 commit comments

Comments
 (0)