[ https://issues.apache.org/jira/browse/HIVE-26744?focusedWorklogId=827566&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-827566 ]
ASF GitHub Bot logged work on HIVE-26744: ----------------------------------------- Author: ASF GitHub Bot Created on: 21/Nov/22 12:52 Start Date: 21/Nov/22 12:52 Worklog Time Spent: 10m Work Description: SourabhBadhya commented on code in PR #3774: URL: https://github.com/apache/hive/pull/3774#discussion_r1027999992 ########## ql/src/test/queries/clientpositive/udf_array_min.q: ########## @@ -0,0 +1,16 @@ +--! qt:dataset:src +set hive.fetch.task.conversion=more; Review Comment: Is this required here? Issue Time Tracking ------------------- Worklog Id: (was: 827566) Time Spent: 2h 50m (was: 2h 40m) > Add array_max and array_min UDFs > --------------------------------- > > Key: HIVE-26744 > URL: https://issues.apache.org/jira/browse/HIVE-26744 > Project: Hive > Issue Type: Sub-task > Components: Hive > Reporter: Taraka Rama Rao Lethavadla > Assignee: Taraka Rama Rao Lethavadla > Priority: Major > Labels: pull-request-available > Time Spent: 2h 50m > Remaining Estimate: 0h > > *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: > {noformat} > > SELECT array_max(array(1, 3, 0, NULL)) FROM src LIMIT 1; > 3{noformat} > > *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: > {noformat} > > SELECT array_min(array(1, 3, 0, NULL)) FROM src LIMIT 1; > 0{noformat} > -- This message was sent by Atlassian Jira (v8.20.10#820010)