gabotechs opened a new pull request, #16346: URL: https://github.com/apache/datafusion/pull/16346
## Which issue does this PR close? <!-- We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123. --> - Closes #. ## Rationale for this change The different accumulators of the `array_agg` function store certain scalar values as part of their state, and for the same reason that the following PR - https://github.com/apache/datafusion/pull/15924 was needed for the first/last functions, it is also needed here. ## What changes are included in this PR? Reuses the tooling shipped in https://github.com/apache/datafusion/pull/15924 for compacting scalar values for the different `array_agg` accumulators ## Are these changes tested? yes, by new and existing tests ## Are there any user-facing changes? If users are using a bounded memory pool, they might stop seeing certain errors due to failed memory allocations -- 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