Greater than(大于(Greater than))¶
Supported in: Batch, Faster, Streaming
Returns true if left is greater 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:
a - Right:
b
| a | b | Output |
|---|---|---|
| 1 | 0 | true |
| 1 | 1 | false |
| 0 | 1 | false |
Example 2: Base case¶
Argument values:
- Left:
a - Right:
b
| a | b | Output |
|---|---|---|
| 1 | 0.5 | true |
| 1 | 1.0 | false |
Example 3: Base case¶
Argument values:
- Left:
a - Right:
b
| a | b | Output |
|---|---|---|
| b | a | true |
| abcd | abc | true |
| aa | b | false |
Example 4: Null case¶
Argument values:
- Left:
left - Right:
right
| left | right | Output |
|---|---|---|
| null | b | null |
| b | null | null |
| null | null | null |
中文翻译¶
大于(Greater than)¶
支持:批处理(Batch)、快速计算(Faster)、流处理(Streaming)
若左侧值大于右侧值,则返回 true。
表达式类别: 布尔(Boolean)
声明的参数¶
- 左侧(Left): 左侧表达式。
表达式\ - 右侧(Right): 右侧表达式。
表达式\
输出类型: 布尔(Boolean)
示例¶
示例 1:基础情况¶
参数值:
- 左侧:
a - 右侧:
b
| a | b | 输出 |
|---|---|---|
| 1 | 0 | true |
| 1 | 1 | false |
| 0 | 1 | false |
示例 2:基础情况¶
参数值:
- 左侧:
a - 右侧:
b
| a | b | 输出 |
|---|---|---|
| 1 | 0.5 | true |
| 1 | 1.0 | false |
示例 3:基础情况¶
参数值:
- 左侧:
a - 右侧:
b
| a | b | 输出 |
|---|---|---|
| b | a | true |
| abcd | abc | true |
| aa | b | false |
示例 4:空值情况¶
参数值:
- 左侧:
left - 右侧:
right
| left | right | 输出 |
|---|---|---|
| null | b | null |
| b | null | null |
| null | null | null |