rluvaton commented on issue #22946:
URL: https://github.com/apache/datafusion/issues/22946#issuecomment-4707354146

   > WindowAggExec can require buffering an entire window partition before it 
can evaluate some window functions. Today that buffering is memory-only, so 
queries over large or skewed partitions can exhaust the configured memory pool 
even when the runtime has a spill-capable disk manager.
   
   Actually the current situation is worse (and I had that in the back of my 
mind for a long time)
   
   the `WindowAggExec` buffer the **entire input** even if every window 
partition is 1 row, it still buffer all of it, then **concat**, then evaluate


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to