MaxCompute supports four complex data types: ARRAY, MAP, STRUCT, and JSON. This topic describes ARRAY functions and their features.
Function | Feature |
Determines whether all elements in an ARRAY satisfy the specified condition. | |
Determines whether there is any element in an ARRAY that satisfies the specified condition. | |
Constructs an ARRAY with the given values. | |
Checks whether the specified ARRAY contains the specified value. | |
Removes duplicate elements from an ARRAY. | |
Finds elements that are in ARRAY A but not in ARRAY B, removes duplicates, and returns the result as an ARRAY. | |
Calculates the intersection of two ARRAYs. | |
Concatenates elements in an ARRAY using the specified string. | |
Calculates the maximum value in an ARRAY. | |
Calculates the minimum value in an ARRAY. | |
Returns an array with elements normalized according to the specified p-norm. | |
Calculates the position of the first occurrence of the specified element in an ARRAY. | |
Aggregates elements in an ARRAY. | |
Removes the specified element from an ARRAY. | |
Returns an ARRAY with the specified element repeated the specified number of times. | |
Sorts elements in an ARRAY. | |
Calculates the union of two ARRAYs and removes duplicate elements. | |
Determines whether two ARRAYs contain the same elements. | |
Merges multiple ARRAYs. | |
Returns an array composed of N-tuples of input array elements. | |
Concatenates ARRAYs or strings together. | |
A user-defined table-valued function (UDTF) that converts a single row of data into multiple rows. | |
Filters elements in an ARRAY. | |
Converts an array of arrays into a single array. | |
Returns the element value at the specified position in an ARRAY. | |
Returns an array of N-grams (n-gram) for the specified array elements. | |
Expands the specified ARRAY with one value per row and two columns per row corresponding to the zero-based index and the array element. | |
Returns an array with elements in reverse order of the specified array. | |
Generates an array containing specified elements based on an expression. | |
Returns an array with elements randomly arranged from the specified array. | |
Returns the number of elements in the specified ARRAY. | |
Slices an ARRAY and returns an array of specified length starting from the specified position. | |
Sorts elements in the specified array. | |
Transforms elements in an ARRAY. | |
Merges two ARRAYs at the element level by position. |