split.asciidoc 414 B

123456789101112131415161718
  1. [discrete]
  2. [[esql-split]]
  3. === `SPLIT`
  4. Split a single valued string into multiple strings. For example:
  5. [source,esql]
  6. ----
  7. include::{esql-specs}/string.csv-spec[tag=split]
  8. ----
  9. Which splits `"foo;bar;baz;qux;quux;corge"` on `;` and returns an array:
  10. [%header,format=dsv,separator=|]
  11. |===
  12. include::{esql-specs}/string.csv-spec[tag=split-result]
  13. |===
  14. WARNING: Only single byte delimiters are currently supported.