13 lines
358 B
Plaintext
13 lines
358 B
Plaintext
|
[[esql-mv_sum]]
|
||
|
=== `MV_SUM`
|
||
|
Converts a multivalued field into a single valued field containing the sum
|
||
|
of all of the values. For example:
|
||
|
|
||
|
[source,esql]
|
||
|
----
|
||
|
include::{esql-specs}/math.csv-spec[tag=mv_sum]
|
||
|
include::{esql-specs}/math.csv-spec[tag=mv_sum-result]
|
||
|
----
|
||
|
|
||
|
NOTE: The input type can be any number and the output type is the same as the input type.
|