跳转至

All of(All of(全部为真))

Supported in: Batch, Faster

Calculate the boolean 'and' of an aggregate, using SQL standard semantics for null values.

Expression categories: Aggregate

Declared arguments

  • Expression: The column on which to compute 'all'.
    Expression\

Output type: Boolean

Examples

Example 1: Base case

Argument values:

  • Expression: values

Given input table:

values
true
false
true

Outputs: false


Example 2: Null case

Argument values:

  • Expression: values

Given input table:

values
null
null

Outputs: null


Example 3: Null case

Argument values:

  • Expression: values

Given input table:

values
true
true
null

Outputs: true



中文翻译


All of(全部为真)

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

使用 SQL 标准空值语义计算聚合结果的布尔"与"运算。

表达式类别: 聚合(Aggregate)

声明的参数

  • 表达式(Expression): 用于计算"全部为真"的列。
    表达式\<布尔值>

输出类型: 布尔值(Boolean)

示例

示例 1:基础情况

参数值:

  • 表达式: values

给定输入表:

values
true
false
true

输出结果: false


示例 2:空值情况

参数值:

  • 表达式: values

给定输入表:

values
null
null

输出结果: null


示例 3:空值情况

参数值:

  • 表达式: values

给定输入表:

values
true
true
null

输出结果: true