Equals(等于(Equals))¶
Supported in: Batch, Faster, Streaming
Returns true if left and right are equal.
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 | 1 | true |
| 1 | 0 | false |
Example 2: Base case¶
Argument values:
- Left:
a - Right:
b
| a | b | Output |
|---|---|---|
| 1.0 | 1 | true |
| 1.0 | 0 | false |
Example 3: Base case¶
Argument values:
- Left:
departure - Right:
destination
| departure | destination | Output |
|---|---|---|
| Heathrow | Heathrow | true |
| Heathrow | Gatwick | false |
Example 4: Null case¶
Argument values:
- Left:
departure - Right:
destination
| departure | destination | Output |
|---|---|---|
| null | null | true |
| null | Heathrow | false |
中文翻译¶
等于(Equals)¶
支持:批量计算(Batch)、快速计算(Faster)、流式计算(Streaming)
若左右两侧值相等,则返回 true。
表达式类别: 布尔型(Boolean)
声明参数¶
- 左侧(Left): 左侧表达式。
表达式\<可比较类型> - 右侧(Right): 右侧表达式。
表达式\<可比较类型>
输出类型: 布尔型(Boolean)
示例¶
示例 1:基础情况¶
参数值:
- 左侧:
a - 右侧:
b
| a | b | 输出 |
|---|---|---|
| 1 | 1 | true |
| 1 | 0 | false |
示例 2:基础情况¶
参数值:
- 左侧:
a - 右侧:
b
| a | b | 输出 |
|---|---|---|
| 1.0 | 1 | true |
| 1.0 | 0 | false |
示例 3:基础情况¶
参数值:
- 左侧:
departure - 右侧:
destination
| departure | destination | 输出 |
|---|---|---|
| Heathrow | Heathrow | true |
| Heathrow | Gatwick | false |
示例 4:空值情况¶
参数值:
- 左侧:
departure - 右侧:
destination
| departure | destination | 输出 |
|---|---|---|
| null | null | true |
| null | Heathrow | false |