array_max(input_array: array) -> variant

Return the maximum value in an array. Return null if the input array is null or empty.

Domain

This is a scalar function (calculates a single output value for a single input row).

Categories

Examples

make_col max_element:array_max(arr)

Create a new column with the maximum value from another column arr (an array column).