Row count(行计数(Row count))¶
Supported in: Batch, Faster, Streaming
Counts the number of non null rows in a group.
Expression categories: Aggregate
Declared arguments¶
- optional Expression: no description
Expression\
Output type: Long
Examples¶
Example 1: Base case¶
Argument values:
- Expression:
values
Given input table:
| values |
|---|
| 2 |
| 4 |
| 3 |
Outputs: 3
Example 2: Null case¶
Argument values:
- Expression:
values
Given input table:
| values |
|---|
| 2 |
| null |
| 3 |
Outputs: 2
中文翻译¶
行计数(Row count)¶
支持:批处理(Batch)、快速处理(Faster)、流处理(Streaming)
计算分组中非空行的数量。
表达式类别: 聚合(Aggregate)
声明的参数¶
- 可选 表达式(Expression): 无描述
表达式\<任意类型>
输出类型: 长整型(Long)
示例¶
示例1:基础情况¶
参数值:
- 表达式:
values
给定输入表:
| values |
|---|
| 2 |
| 4 |
| 3 |
输出结果: 3
示例2:空值情况¶
参数值:
- 表达式:
values
给定输入表:
| values |
|---|
| 2 |
| null |
| 3 |
输出结果: 2