Array Functions
array_distinct
Remove duplicate values from the array x.
Examples:
Supported Signatures
array_except
Returns an array of elements in x but not in y, without duplicates.
Examples:
Supported Signatures
array_intersect
Returns an array of the elements in the intersection of x and y, without duplicates.
Examples:
Supported Signatures
array_join
Concatenates the elements of the given array using the delimiter. Null elements are omitted in the result.
Examples:
Supported Signatures
array_max
Returns the maximum value of input array.
Supported Signatures
array_min
Returns the minimum value of input array.
Supported Signatures
array_position
Returns the position of the first occurrence of the element in array x (or 0 if not found).
Examples:
Supported Signatures
array_remove
Remove all elements that equal element from array x.
Examples:
Supported Signatures
array_sort
Sorts and returns the array x. The elements of x must be orderable. Null elements will be placed at the end of the returned array.
Supported Signatures
array_union
Returns an array of the elements in the union of x and y, without duplicates.
Examples:
Supported Signatures
cardinality
Returns the cardinality (size) of the array x.
Examples:
Supported Signatures
contains
Takes an array and an element. Returns true if the array contains the element, false if not.
Examples:
Supported Signatures
element_at
Returns element of array at given index. If index > 0, this function provides the same functionality as the SQL-standard subscript operator ([]), except that the function returns NULL when accessing an index larger than array length, whereas the subscript operator would fail in such a case. If index < 0, element_at accesses elements from the last to the first.
Supported Signatures
flatten
Flattens an array(array(T)) to an array(T) by concatenating the contained arrays.
Examples:
Supported Signatures
repeat
Repeat element for count times.
Examples:
Supported Signatures