BIT_LENGTH (Lakehouse v1)
Return the length of a string in bits.
Analyze Syntax
Section titled “Analyze Syntax”func.bit_length(<expr>)Analyze Examples
Section titled “Analyze Examples”func.bit_length('Word')┌─────────────────────────┐│ func.bit_length('Word') │├─────────────────────────┤│ 32 │└─────────────────────────┘SQL Syntax
Section titled “SQL Syntax”BIT_LENGTH(<expr>)Arguments
Section titled “Arguments”| Arguments | Description |
|---|---|
<expr> | The string. |
Return Type
Section titled “Return Type”BIGINT
SQL Examples
Section titled “SQL Examples”SELECT BIT_LENGTH('Word');┌────────────────────────────┐│ SELECT BIT_LENGTH('Word'); │├────────────────────────────┤│ 32 │└────────────────────────────┘