Getting started
User guides
Administration guides
Reference guides
Resources
Updated Aug 10, 2022
Send us feedback
octet_length
Returns the byte length of string data or number of bytes of binary data.
octet_length(expr)
expr: A STRING or BINARY expression.
expr
An INTEGER.
> SELECT octet_length('Spark SQL'); 9 > SELECT octet_length('μμΈμ'); 9
bit_length function
length function
char_length function
character_length function