SIGN (Lakehouse v2)
Returns the sign of a number: -1, 0, or 1.
Analyze Syntax
Section titled “Analyze Syntax”func.sign(<x>)Analyze Examples
Section titled “Analyze Examples”func.sign(-42)
┌────┐│ -1 │└────┘SQL Syntax
Section titled “SQL Syntax”SIGN(<x>)SQL Examples
Section titled “SQL Examples”SELECT SIGN(-42);
┌────┐│ -1 │└────┘