array_max¶
Description¶
Return the maximum 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_max(input_array)
| Argument | Type | Optional | Repeatable | Restrictions | 
|---|---|---|---|---|
| input_array | array | no | no | none | 
Examples¶
make_col max_element:array_max(arr)
Create a new column with the maximum value from another column arr (an array column).