跳转至

Less than(小于(Less than))

Supported in: Batch, Faster, Streaming

Returns true if left is less than 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
[ {
field1: a,
field2: aa,
} ]
[ {
field1: b,
field2: bb,
} ]
true

Example 4: Null case

Argument values:

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


中文翻译


小于(Less than)

支持模式:批处理(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 输出
[ {
field1: a,
field2: aa,
} ]
[ {
field1: b,
field2: bb,
} ]
true

示例 4:空值情况

参数值:

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