跳转至

Absolute value(绝对值)

Supported in: Batch, Faster, Streaming

Returns the absolute value.

Expression categories: Numeric

Declared arguments

  • Expression: Compute absolute value of this expression.
    Expression\

Type variable bounds: T accepts Numeric

Output type: T

Examples

Example 1: Base case

Argument values:

  • Expression: numeric_column
numeric_column Output
0.0 0.0
1.1 1.1
-1.1 1.1

Example 2: Null case

Argument values:

  • Expression: numeric_column
numeric_column Output
null null


中文翻译

绝对值

支持:批处理(Batch)、快速处理(Faster)、流处理(Streaming)

返回表达式的绝对值。

表达式类别: 数值型(Numeric)

声明的参数

  • 表达式(Expression): 计算此表达式的绝对值。
    表达式\

类型变量约束: T 接受数值型(Numeric)

输出类型: T

示例

示例 1:基础情况

参数值:

  • 表达式(Expression): numeric_column
numeric_column 输出(Output)
0.0 0.0
1.1 1.1
-1.1 1.1

示例 2:空值情况

参数值:

  • 表达式(Expression): numeric_column
numeric_column 输出(Output)
null null