mv_sum.asciidoc 412 B

123456789101112131415161718
  1. [[esql-mv_sum]]
  2. === `MV_SUM`
  3. Converts a multivalued field into a single valued field containing the sum
  4. of all of the values. For example:
  5. [source,esql]
  6. ----
  7. include::{esql-specs}/math.csv-spec[tag=mv_sum]
  8. ----
  9. Returns:
  10. [%header,format=dsv,separator=|]
  11. |===
  12. include::{esql-specs}/math.csv-spec[tag=mv_sum-result]
  13. |===
  14. NOTE: The input type can be any number and the output type is the same as the input type.