Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Return Type

Name(Signature)

Description

OSS

int

size(Map<K.V>)

Returns the number of elements in the map type.


int

size(Array<T>)

Returns the number of elements in the array type.


array<K>

map_keys(Map<K.V>)

Returns an unordered array containing the keys of the input map.


array<V>

map_values(Map<K.V>)

Returns an unordered array containing the values of the input map.


boolean

array_contains(Array<T>, value)

Returns TRUE if the array contains the provided parameter value.


array<t>

sort_array(Array<T>)

Sorts the input array in ascending order according to the natural ordering of the array elements and returns it.


array<t>

array(obj1, obj2, ....  objN)

Status
colourGreen
titleNew
The function returns an array of the same type as the input array with distinct values. Example: array('b', 'd', 'd', 'a') reurtns ['b', 'd', 'a'] 

GenericUDFArrayDistinct.java

array<t>

array_slice(array, start, length)

Status
colourGreen
titleNew
Returns the subset or range of elements. 

GenericUDFArraySlice *

t

array_min((array(obj1, obj2, obj3...))

Status
colourGreen
titleNew
The function returns the minimum value in the array with elements for which order is supported. Example: array_min(array(1, 3, 0, NULL)) Result: 0

GenericUDFArrayMin

t

array_max((array(obj1, obj2, obj3...))

Status
colourGreen
titleNew
The function returns the maximum value in the array with elements for which order is supported. Example: array_max(array(1, 3, 0, NULL)) Result: 3

GenericUDFArrayMax

t

array_distinct(array(obj1, obj2, obj3...))

Status
colourGreen
titleNew
The function returns an array of the same type as the input array with distinct values. Example: array_distinct(array('b', 'd', 'd', 'a')) Result:  ['b', 'd', 'a']

GenericUDFArrayDistinct


array_join

Status
colourGreen
titleNew



array_expect

Status
colourGreen
titleNew



array_intersect

Status
colourGreen
titleNew



array_union

Status
colourGreen
titleNew



array_remove

Status
colourGreen
titleNew


Type Conversion Functions

...