SIGN (Lakehouse v1)
Returns the sign of the argument as -1, 0, or 1, depending on whether x is negative, zero, or positive or NULL if the argument was NULL.
Analyze Syntax
Section titled “Analyze Syntax”func.sign( <x> )Analyze Examples
Section titled “Analyze Examples”func.sign(0)
┌──────────────┐│ func.sign(0) │├──────────────┤│ 0 │└──────────────┘SQL Syntax
Section titled “SQL Syntax”SIGN( <x> )SQL Examples
Section titled “SQL Examples”SELECT SIGN(0);
┌─────────┐│ sign(0) │├─────────┤│ 0 │└─────────┘