Comment on page
Collects a set of all values per group for a given field.
COLLECT_SET_EACH([MAX_VALUES,] GROUP, VALUE)
(Optional) The maximum number of entries that are counted. When omitted, there is effectively no limit.
The field by which to group the results.
The field to be collected.
Returns an array of key-value pairs where each
GROUPis matched to the collected set of all values
VALUEseen for that group.