mv_count.asciidoc 426 B

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