Multiply numbers(数值相乘)¶
Supported in: Batch, Faster, Streaming
Calculates the product of all input columns.
Expression categories: Numeric
Declared arguments¶
- Expressions: List of columns to be multiplied.
List\>
Output type: Numeric
Examples¶
Example 1: Base case¶
Argument values:
- Expressions: [
col_a,col_b,col_c]
| col_a | col_b | col_c | Output |
|---|---|---|---|
| 10 | 2 | 3 | 60 |
Example 2: Null case¶
Argument values:
- Expressions: [
col_a,col_b]
| col_a | col_b | Output |
|---|---|---|
| null | null | null |
Example 3: Null case¶
Argument values:
- Expressions: [
col_a,col_b]
| col_a | col_b | Output |
|---|---|---|
| 1 | null | null |
Example 4: Null case¶
Argument values:
- Expressions: [
col_a,col_b]
| col_a | col_b | Output |
|---|---|---|
| null | 1 | null |
中文翻译¶
数值相乘¶
支持模式:批量(Batch)、快速(Faster)、流式(Streaming)
计算所有输入列的乘积。
表达式类别: 数值型(Numeric)
声明的参数¶
- 表达式(Expressions): 需要相乘的列列表。
List\>
输出类型: Numeric
示例¶
示例 1:基础情况¶
参数值:
- 表达式: [
col_a,col_b,col_c]
| col_a | col_b | col_c | 输出 |
|---|---|---|---|
| 10 | 2 | 3 | 60 |
示例 2:空值情况¶
参数值:
- 表达式: [
col_a,col_b]
| col_a | col_b | 输出 |
|---|---|---|
| null | null | null |
示例 3:空值情况¶
参数值:
- 表达式: [
col_a,col_b]
| col_a | col_b | 输出 |
|---|---|---|
| 1 | null | null |
示例 4:空值情况¶
参数值:
- 表达式: [
col_a,col_b]
| col_a | col_b | 输出 |
|---|---|---|
| null | 1 | null |