mv_sum.asciidoc 432 B

123456789101112131415
  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.merge.styled,esql]
  6. ----
  7. include::{esql-specs}/math.csv-spec[tag=mv_sum]
  8. ----
  9. [%header.monospaced.styled,format=dsv,separator=|]
  10. |===
  11. include::{esql-specs}/math.csv-spec[tag=mv_sum-result]
  12. |===
  13. NOTE: The input type can be any number and the output type is the same as the input type.