ES|QL LTRIM function
string-
String expression. If
null, the function returnsnull.
Removes leading whitespaces from a string.
| string | result |
|---|---|
| keyword | keyword |
| text | keyword |
ROW message = " some text ", color = " red "
| EVAL message = LTRIM(message)
| EVAL color = LTRIM(color)
| EVAL message = CONCAT("'", message, "'")
| EVAL color = CONCAT("'", color, "'")
| message:keyword | color:keyword |
|---|---|
| 'some text ' | 'red ' |