elasticsearch/docs/reference/esql/functions/examples/reverse.asciidoc

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
649 B
Plaintext
Raw Normal View History

// 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]
|===