v.20.5Improvement
Allow Use of groupArrayArray and groupUniqArrayArray as SimpleAggregateFunction
Allow usinggroupArrayArrayandgroupUniqArrayArrayasSimpleAggregateFunction. #11650 (Volodymyr Kuznetsov).
Why it matters
This feature enables users to leverage thegroupArrayArray and groupUniqArrayArray functions within the SimpleAggregateFunction wrapper, allowing more flexible and composable aggregate function usage. It solves the limitation where these nested array aggregation functions could not previously be used as simple aggregate functions, enhancing the expressiveness and utility of aggregate queries.How to use it
Users can now directly specifygroupArrayArray and groupUniqArrayArray as aggregate functions inside SimpleAggregateFunction calls. For example:SELECT SimpleAggregateFunction('groupArrayArray', column) FROM table;or
SELECT SimpleAggregateFunction('groupUniqArrayArray', column) FROM table;