Dandandan opened a new issue, #15205: URL: https://github.com/apache/datafusion/issues/15205
### Describe the bug ScalarValue::try_from_array are used in areas such as accumulators. Currently arrow`slice` is used for Struct/Union/List types, causing accumulators holding onto the original arrays (rather than a single value), and thus higher memory usage. ### To Reproduce Consider copying the value into a new `Array`, or having a more efficient way of representing the scalar value. ### Expected behavior _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