ARRAY functions
MaxCompute supports four complex data types: ARRAY, MAP, STRUCT, and JSON. This topic describes ARRAY functions and their features.
|
Function |
Description |
|
Checks whether all elements in an ARRAY meet a specified condition. |
|
|
Checks whether an ARRAY contains elements that meet a specified condition. |
|
|
Constructs an ARRAY by using specified values. |
|
|
Checks whether a specified ARRAY contains a specified value. |
|
|
Removes duplicate elements from an ARRAY. |
|
|
Finds elements that exist in ARRAY A but not in ARRAY B, removes duplicate elements, and returns the result as an ARRAY. |
|
|
Returns the intersection of two ARRAYs. |
|
|
Concatenates elements in an ARRAY by using a specified separator. |
|
|
Returns the maximum value in an ARRAY. |
|
|
Returns the minimum value in an ARRAY. |
|
|
Returns an ARRAY whose elements are normalized based on a specified p-norm. |
|
|
Returns the position of the first occurrence of a specified element in an ARRAY. |
|
|
Aggregates elements in an ARRAY. |
|
|
Removes specified elements from an ARRAY. |
|
|
Returns an ARRAY in which a specified element is repeated a specified number of times. |
|
|
Sorts elements in an ARRAY. |
|
|
Returns the union of two ARRAYs and removes duplicate elements. |
|
|
Checks whether two ARRAYs contain the same elements. |
|
|
Merges multiple ARRAYs. |
|
|
Returns an ARRAY that consists of n-grams of the input ARRAY elements. |
|
|
Concatenates ARRAYs or strings. |
|
|
A UDTF that converts one row of data into multiple rows. |
|
|
Filters elements in an ARRAY. |
|
|
Converts an ARRAY of ARRAYs into a single ARRAY. |
|
|
Returns the element at a specified position in an ARRAY. |
|
|
Returns an ARRAY of n-grams for the specified ARRAY elements. |
|
|
Expands a specified ARRAY into multiple rows, with each row containing the index (starting from 0) and the element value. |
|
|
Returns an ARRAY with elements in reverse order. |
|
|
Generates an ARRAY that contains specified elements based on an expression. |
|
|
Returns an ARRAY with elements in random order. |
|
|
Returns the number of elements in an ARRAY. |
|
|
Slices an ARRAY and returns elements from a specified position for a specified length. |
|
|
Sorts elements in a specified ARRAY. |
|
|
Transforms elements in an ARRAY. |
|
|
Merges two ARRAYs element by element based on positions. |