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

11 lines
186 B
Plaintext
Raw Normal View History

2023-05-11 23:02:27 +08:00
[[esql-length]]
=== `LENGTH`
Returns the character length of a string.
[source,esql]
----
FROM employees
| KEEP first_name, last_name, height
2023-05-11 23:02:27 +08:00
| EVAL fn_length = LENGTH(first_name)
----