Array reverse(数组反转(Array reverse))¶
Supported in: Batch, Faster, Streaming
Reverse the order of elements in 'array'.
Expression categories: Array
Declared arguments¶
- Expression: Array to be reversed.
Expression\>
Type variable bounds: T accepts AnyType
Output type: Array\
Examples¶
Example 1: Base case¶
Argument values:
- Expression: [ 1, 2, 3 ]
Output: [ 3, 2, 1 ]
Example 2: Null case¶
Argument values:
- Expression:
array
| array | Output |
|---|---|
| null | null |
| [ 1, null ] | [ null, 1 ] |
中文翻译¶
数组反转(Array reverse)¶
支持:批处理(Batch)、快速处理(Faster)、流处理(Streaming)
反转'数组(array)'中元素的顺序。
表达式类别: 数组(Array)
声明的参数¶
- 表达式(Expression): 待反转的数组。
表达式\<数组\>
类型变量约束: T 接受任意类型(AnyType)
输出类型: 数组\
示例¶
示例 1:基础情况¶
参数值:
- 表达式: [ 1, 2, 3 ]
输出: [ 3, 2, 1 ]
示例 2:空值情况¶
参数值:
- 表达式:
array
| array | 输出 |
|---|---|
| null | null |
| [ 1, null ] | [ null, 1 ] |