LOG2 (Lakehouse v1)
Returns the base-2 logarithm of x. If x is less than or equal to 0.0E0, the function returns NULL.
Analyze Syntax
Section titled “Analyze Syntax”func.log2( <x> )Analyze Examples
Section titled “Analyze Examples”func.log2(65536)
┌──────────────────┐│ func.log2(65536) │├──────────────────┤│ 16 │└──────────────────┘SQL Syntax
Section titled “SQL Syntax”LOG2( <x> )SQL Examples
Section titled “SQL Examples”SELECT LOG2(65536);
┌─────────────┐│ log2(65536) │├─────────────┤│ 16 │└─────────────┘