mv_sum.asciidoc 443 B

12345678910111213141516
  1. [discrete]
  2. [[esql-mv_sum]]
  3. === `MV_SUM`
  4. Converts a multivalued field into a single valued field containing the sum
  5. of all of the values. For example:
  6. [source.merge.styled,esql]
  7. ----
  8. include::{esql-specs}/math.csv-spec[tag=mv_sum]
  9. ----
  10. [%header.monospaced.styled,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.