mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-29 18:03:32 -04:00
This adds some extra tests, docs, and descriptions for the `trim`, `ltrim`, and `rtrim` functions.
20 lines
415 B
Text
20 lines
415 B
Text
[discrete]
|
|
[[esql-ltrim]]
|
|
=== `LTRIM`
|
|
[.text-center]
|
|
image::esql/functions/signature/ltrim.svg[Embedded,opts=inline]
|
|
|
|
Removes leading whitespaces from strings.
|
|
|
|
[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]
|
|
|===
|
|
|
|
Supported types:
|
|
|
|
include::types/rtrim.asciidoc[]
|