elasticsearch/docs/reference/esql/functions/rtrim.asciidoc

31 lines
517 B
Plaintext

[discrete]
[[esql-rtrim]]
=== `RTRIM`
*Syntax*
[.text-center]
image::esql/functions/signature/rtrim.svg[Embedded,opts=inline]
*Parameters*
`str`::
String expression. If `null`, the function returns `null`.
*Description*
Removes trailing whitespaces from strings.
include::types/rtrim.asciidoc[]
*Example*
[source.merge.styled,esql]
----
include::{esql-specs}/string.csv-spec[tag=rtrim]
----
[%header.monospaced.styled,format=dsv,separator=|]
|===
include::{esql-specs}/string.csv-spec[tag=rtrim-result]
|===