Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Lordworms committed Apr 1, 2024
1 parent 86d0faf commit e4e1c38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datafusion/physical-plan/src/coalesce_batches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ impl CoalesceBatchesStream {
Some(Ok(batch)) => {
if (batch.num_rows() >= self.target_batch_size
|| batch.num_rows() >= self.fetch)
|| self.buffer.is_empty()
&& self.buffer.is_empty()
{
return Poll::Ready(Some(Ok(batch)));
} else if batch.num_rows() == 0 {
Expand Down

0 comments on commit e4e1c38

Please sign in to comment.