elasticsearch/docs/reference/esql/functions/examples/reverse.asciidoc
Drew Tate 2046b497fc
[ES|QL] add reverse function (#113297) (#114163)
Adds a REVERSE string function
2024-10-05 05:24:05 +10:00

22 lines
649 B
Text
Generated

// This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.
*Examples*
[source.merge.styled,esql]
----
include::{esql-specs}/string.csv-spec[tag=reverse]
----
[%header.monospaced.styled,format=dsv,separator=|]
|===
include::{esql-specs}/string.csv-spec[tag=reverse-result]
|===
`REVERSE` works with unicode, too! It keeps unicode grapheme clusters together during reversal.
[source.merge.styled,esql]
----
include::{esql-specs}/string.csv-spec[tag=reverseEmoji]
----
[%header.monospaced.styled,format=dsv,separator=|]
|===
include::{esql-specs}/string.csv-spec[tag=reverseEmoji-result]
|===