2010YOUY01 opened a new issue, #14748: URL: https://github.com/apache/datafusion/issues/14748
### Is your feature request related to a problem or challenge? https://github.com/apache/datafusion/pull/14644 fixed an external sorting bug. Each batch's memory overhead is estimated as `2 * batch memory size` for the extra row conversion overhead. It works for common cases but still can fail. See https://github.com/apache/datafusion/pull/14644#issuecomment-2659063578 and https://github.com/apache/datafusion/pull/14644#issuecomment-2660783992. To implement a more accurate memory size estimation for those edge cases, we can first do `col->row` conversion and measure the memory consumption. (depends on https://github.com/apache/datafusion/issues/7053) ### Describe the solution you'd like _No response_ ### Describe alternatives you've considered _No response_ ### Additional context _No response_ -- 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.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