berkaysynnada commented on issue #9792:
URL: 
https://github.com/apache/arrow-datafusion/issues/9792#issuecomment-2037425563

   >   <--- if there was a fetch=5 here, there is no need to limit in 
CoalesceBatches
   >                                            as it would see end of stream 
after `StreamingTableExec` is done
   >
   
   Aggregate would need 500 rows to produce 5 rows, but we don't know that 
until 501st row comes to the Aggregate. So, we cannot limit the 
`StreamingTableExec` here during planning, but limit the `CoalesceBatches`.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to