Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
1. array_max(array(obj1, obj2,...)) - The function returns the maximum value in an array with elements for which order is supported, returns null if array is empty
Example:
> SELECT array_max(array(1, 3, 0, NULL)) FROM src LIMIT 1; 3
2. array_min(array(obj1, obj2,...)) - The function returns the minimum value in an array with elements for which order is supported, returns null if array is empty
Example:
> SELECT array_min(array(1, 3, 0, NULL)) FROM src LIMIT 1; 0
Attachments
Issue Links
- is depended upon by
-
HIVE-26754 Implement array_distinct UDF to return an array after removing duplicates in it
-
- Resolved
-
- links to