Get started
Load & manage data
Work with data
Administration
Reference & resources
CLUSTER BY
mask
ROW FILTER
Updated Nov 22, 2024
Send us feedback
octet_length
Applies to: Databricks SQL Databricks Runtime
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