Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Applies to:
Databricks SQL
Databricks Runtime
Returns -1.0, 0.0, or 1.0 as expr is negative, 0, or positive. This function is a synonym for sign function.
Syntax
signum(expr)
Arguments
expr: An expression that evaluates to a numeric or interval.
Interval is supported since: Databricks Runtime 10.1
Returns
A DOUBLE.
Examples
> SELECT signum(40);
1.0
> SELECT signum(INTERVAL'-1' DAY)
-1.0