We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f898a7 commit d5ecacaCopy full SHA for d5ecaca
datafusion/physical-plan/src/coalesce_batches.rs
@@ -354,6 +354,7 @@ impl CoalesceBatchesStream {
354
}
355
356
CoalesceBatchesStreamState::ReturnBuffer => {
357
+ let _timer = cloned_time.timer();
358
// Combine buffered batches into one batch and return it.
359
let batch = self.coalescer.finish_batch()?;
360
// Set to pull state for the next iteration.
@@ -366,6 +367,7 @@ impl CoalesceBatchesStream {
366
367
// If buffer is empty, return None indicating the stream is fully consumed.
368
Poll::Ready(None)
369
} else {
370
371
// If the buffer still contains batches, prepare to return them.
372
373
Poll::Ready(Some(Ok(batch)))
0 commit comments