跳转至

Or(Or(或))

Supported in: Batch, Faster, Streaming

Returns true if any of the specified conditions are true. Nulls are considered false.

Expression categories: Boolean

Declared arguments

  • Conditions: List of conditions from which the output is calculated.
    List\>

Output type: Boolean

Examples

Example 1: Base case

Argument values:

  • Conditions: [left_boolean, right_boolean]
left_boolean right_boolean Output
true true true
true false true
false true true
false false false

Example 2: Null case

Argument values:

  • Conditions: [null, true]

Output: true



中文翻译


Or(或)

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

如果任意指定条件为真,则返回 true。空值(Null)视为 false。

表达式类别: 布尔值(Boolean)

声明的参数

  • Conditions(条件): 用于计算输出的条件列表。
    List\>

输出类型: Boolean

示例

示例 1:基础情况

参数值:

  • Conditions(条件): [left_boolean, right_boolean]
left_boolean right_boolean 输出
true true true
true false true
false true true
false false false

示例 2:空值情况

参数值:

  • Conditions(条件): [null, true]

输出: true