Skip to main content

sumMappedArrays

Introduced in: v1.1.0 Totals one or more value arrays according to the keys specified in the key array. Returns a tuple of arrays: keys in sorted order, followed by values summed for the corresponding keys without overflow.
  • Passing a tuple of keys and value arrays is identical to passing an array of keys and an array of values.
  • The number of elements in key and all value arrays must be the same for each row that is totaled.
Syntax
Arguments
  • key — Array of keys. Array
  • value1, value2, ... — Arrays of values to sum for each key. Array
Returned value Returns a tuple of arrays: the first array contains keys in sorted order, followed by arrays containing values summed for the corresponding keys. Tuple Examples Basic usage with Nested type
Query
Response
Multiple value arrays example
Query
Response
See Also
Last modified on June 19, 2026