elasticsearch/docs/reference/query-languages/esql/_snippets/functions/examples/length.md

330 B

% This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.

Example

FROM airports
| WHERE country == "India"
| KEEP city
| EVAL fn_length = LENGTH(city)
city:keyword fn_length:integer
Agwār 5
Ahmedabad 9
Bangalore 9