elasticsearch/docs/reference/esql/functions/split.asciidoc
Nik Everett 75a6ac1ed1 Docs: convert the results into a table (ESQL-1143)
This moves the results in the esql examples from preformatted text to an
actual html table. We can further format it from there.
2023-05-17 16:00:15 -04:00

17 lines
403 B
Text

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