Array repeat(数组重复(Array repeat))¶
Supported in: Batch, Faster, Streaming
Returns an array with the contents of array concatenated value times.
Expression categories: Array
Declared arguments¶
- Array: Array to be repeated.
Expression\> - Value: Number of times to concatenate 'array'.
Expression\
Type variable bounds: T accepts AnyType
Output type: Array\
Examples¶
Example 1: Base case¶
Argument values:
- Array: [ 1, 2 ]
- Value: 2
Output: [ 1, 2, 1, 2 ]
Example 2: Null case¶
Argument values:
- Array:
array - Value:
value
| array | value | Output |
|---|---|---|
| [ 1, 2, 3 ] | null | null |
| null | 1 | null |
| null | null | null |
中文翻译¶
数组重复(Array repeat)¶
支持:批处理(Batch)、快速计算(Faster)、流处理(Streaming)
返回将 array 的内容重复拼接 value 次后的数组。
表达式类别: 数组(Array)
声明的参数¶
- 数组(Array): 需要重复的数组。
表达式\> - 值(Value): 数组重复拼接的次数。
表达式\
类型变量约束: T 接受任意类型(AnyType)
输出类型: Array\
示例¶
示例 1:基础情况¶
参数值:
- 数组: [ 1, 2 ]
- 值: 2
输出: [ 1, 2, 1, 2 ]
示例 2:空值情况¶
参数值:
- 数组:
array - 值:
value
| array | value | 输出 |
|---|---|---|
| [ 1, 2, 3 ] | null | null |
| null | 1 | null |
| null | null | null |