File tree Expand file tree Collapse file tree
datafusion/physical-plan/src Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments