Comment on page
LAST_K_EACH
Gets the last
K
values per given group.LAST_K_EACH([MAX_VALUES,] K, GROUP, VALUE)
Type:
Default: 2,147,483,647
(Optional) The maximum number of entries that are counted. If omitted, there is effectively no limit.
Type:
integer
The number of entries to return.
Type: any
The field to group by.
Type: any
The field to get the last value(s) of.
Type:
array
Returns an array of key-value pairs where each
GROUP
is matched to an array of the last K
values of VALUE
seen for that group.Last modified 1yr ago