mv_concat.asciidoc 915 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. [discrete]
  2. [[esql-mv_concat]]
  3. === `MV_CONCAT`
  4. *Syntax*
  5. [.text-center]
  6. image::esql/functions/signature/mv_concat.svg[Embedded,opts=inline]
  7. *Parameters*
  8. `v`::
  9. Multivalue expression.
  10. `delim`::
  11. Delimiter.
  12. *Description*
  13. Converts a multivalued string expression into a single valued column containing
  14. the concatenation of all values separated by a delimiter.
  15. include::types/mv_concat.asciidoc[]
  16. *Examples*
  17. [source.merge.styled,esql]
  18. ----
  19. include::{esql-specs}/string.csv-spec[tag=mv_concat]
  20. ----
  21. [%header.monospaced.styled,format=dsv,separator=|]
  22. |===
  23. include::{esql-specs}/string.csv-spec[tag=mv_concat-result]
  24. |===
  25. To concat non-string columns, call <<esql-to_string>> first:
  26. [source.merge.styled,esql]
  27. ----
  28. include::{esql-specs}/string.csv-spec[tag=mv_concat-to_string]
  29. ----
  30. [%header.monospaced.styled,format=dsv,separator=|]
  31. |===
  32. include::{esql-specs}/string.csv-spec[tag=mv_concat-to_string-result]
  33. |===