Get started
Load & manage data
Work with data
Administration
Reference & resources
CLUSTER BY
mask
ROW FILTER
Updated Oct 04, 2024
Send us feedback
bit_length
Applies to: Databricks SQL Databricks Runtime
Returns the bit length of string data or number of bits of binary data.
bit_length(expr)
expr: An BINARY or STRING expression.
expr
An INTEGER.
> SELECT bit_length('Spark SQL'); 72 > SELECT bit_length('北京'); 48
length function
char_length function
character_length function