elasticsearch/docs/reference/esql/functions/mv_sum.asciidoc

19 lines
412 B
Plaintext
Raw Normal View History

[[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]
----
Returns:
[%header,format=dsv,separator=|]
|===
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.