Is your feature request related to a problem or challenge?
Based on the article Aggregating Millions of Groups Fast in Apache Arrow DataFusion it's possible to optimise aggregation functions using GroupsAccumulator.
Describe the solution you'd like
Implement GroupsAccumulator for array_agg aggregation function
Describe alternatives you've considered
No response
Additional context
No response