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

31 lines
516 B
Plaintext

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