alamb commented on issue #9562: URL: https://github.com/apache/datafusion/issues/9562#issuecomment-2887254045
> Well the hacky solution is just `EmitTo::First(batch_size)` until done 😄 I guess the concern is that it's not efficient because it's using `Vec::split_off` under the hood in most cases? Although that's not mandated by the API. But currently some plans simply don't work because of the memory overcounting. I think that will effectively copy all the values potentially total_size/batch_size times. But it will result in smaller allocations of record batches for sure -- 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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org