byte_length.md 382 B

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

BYTE LENGTH

Returns the byte length of a string.

Note: All strings are in UTF-8, so a single character can use multiple bytes.

FROM airports
| WHERE country == "India"
| KEEP city
| EVAL fn_length = LENGTH(city), fn_byte_length = BYTE_LENGTH(city)