<!-- (you don't have to strictly follow this form) --> **Use case** <!-- A clear and concise description of what is the intended usage scenario is. --> Please check CH grouprArray doc, let's port over what's missing https://clickhouse.com/docs/en/sql-reference/aggregate-functions/reference/grouparrayinsertat etc Support group_array_last, group_array_sorted and group_array_sample function