跳转至

And

Supported in: Batch, Faster, Streaming

Returns true if all 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 false
false true false
false false false

Example 2: Null case

Argument values:

  • Conditions: [null, true]

Output: false



中文翻译

And

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

如果所有指定条件均为真,则返回真。空值(null)被视为假。

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

声明的参数

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

输出类型: Boolean

示例

示例1:基础情况

参数值:

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

示例2:空值情况

参数值:

  • 条件: [null, true]

输出: false