array_min¶
Description¶
Return the minimum value in an array. Return null if the input array is null or empty.
Return type¶
variant
Domain¶
This is a scalar function (calculates a single output value for a single input row.)
Categories¶
Usage¶
array_min(input_array)
Argument |
Type |
Optional |
Repeatable |
Restrictions |
---|---|---|---|---|
input_array |
array |
no |
no |
none |
Examples¶
make_col min_element:array_min(arr)
Create a new column with the minimal value from another column arr
(an array column).