Absolute value

Supported in: Batch, Streaming

Returns the absolute value.

Expression categories: Numeric

Declared arguments

  • Expression - Compute absolute value of this expression.
    Expression<T>

Type variable bounds: T accepts Numeric

Output type: T

Examples

Example 1: Base case

Argument values:

  • Expression: numeric_column
numeric_columnOutput
0.00.0
1.11.1
-1.11.1

Example 2: Null case

Argument values:

  • Expression: numeric_column
numeric_columnOutput
nullnull