elasticsearch/docs/reference/esql/functions/split.asciidoc
Nik Everett 1541da5e65
ESQL: Generate more docs (#106367)
This modifies the ESQL test infrastructure to generate more of the
documentation for functions. It generates the *Description* section, the
*Examples* section, and the *Parameters* section as separate files so we
can use them as needed. It also generates a `layout` file that's just
a guess as to how to render the whole thing. In some cases it'll work
and we can use that instead of hand maintaining a "top level"
description file for the function.

Most newly generated files are unused. We have to chose to pick them up
by replacing the sections we were manually maintaining with an include
of the generated section. Or by replacing the entire hand maintained
file with the generated top level file.

Relates to #104247
2024-03-19 15:40:13 -04:00

31 lines
592 B
Text

[discrete]
[[esql-split]]
=== `SPLIT`
[.text-center]
image::esql/functions/signature/split.svg[Embedded,opts=inline]
*Parameters*
`str`::
String expression. If `null`, the function returns `null`.
`delim`::
Delimiter. Only single byte delimiters are currently supported.
*Description*
Splits a single valued string into multiple strings.
include::types/split.asciidoc[]
*Example*
[source.merge.styled,esql]
----
include::{esql-specs}/string.csv-spec[tag=split]
----
[%header.monospaced.styled,format=dsv,separator=|]
|===
include::{esql-specs}/string.csv-spec[tag=split-result]
|===