split.asciidoc 403 B

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