跳转至

Less than or equals(小于或等于 (Less than or equals))

Supported in: Batch, Faster, Streaming

Returns true if left is less than or equal to right.

Expression categories: Boolean

Declared arguments

  • Left: Left expression.
    Expression\
  • Right: Right expression.
    Expression\

Output type: Boolean

Examples

Example 1: Base case

Argument values:

  • Left: left
  • Right: right
left right Output
1.0 10 true
10.0 1 false

Example 2: Base case

Argument values:

  • Left: left
  • Right: right
left right Output
a b true
b a false

Example 3: Null case

Argument values:

  • Left: left
  • Right: right
left right Output
null b null
b null null
null null null


中文翻译


小于或等于 (Less than or equals)

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

如果左侧值小于或等于右侧值,则返回 true。

表达式类别: 布尔 (Boolean)

声明的参数

  • 左侧 (Left): 左侧表达式。
    Expression\
  • 右侧 (Right): 右侧表达式。
    Expression\

输出类型: Boolean

示例

示例 1:基础情况

参数值:

  • 左侧: left
  • 右侧: right
left right 输出
1.0 10 true
10.0 1 false

示例 2:基础情况

参数值:

  • 左侧: left
  • 右侧: right
left right 输出
a b true
b a false

示例 3:空值情况

参数值:

  • 左侧: left
  • 右侧: right
left right 输出
null b null
b null null
null null null