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

13 lines
358 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]
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.