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