mv_count.asciidoc 415 B

123456789101112131415
  1. [[esql-mv_count]]
  2. === `MV_COUNT`
  3. Converts a multivalued field into a single valued field containing a count of the number
  4. of values:
  5. [source.merge.styled,esql]
  6. ----
  7. include::{esql-specs}/string.csv-spec[tag=mv_count]
  8. ----
  9. [%header.monospaced.styled,format=dsv,separator=|]
  10. |===
  11. include::{esql-specs}/string.csv-spec[tag=mv_count-result]
  12. |===
  13. NOTE: This function accepts all types and always returns an `integer`.