Note
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang mag-sign in o magpalit ng mga direktoryo.
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang baguhin ang mga direktoryo.
Applies to:
Databricks SQL
Databricks Runtime
Returns the maximum value in array.
Syntax
array_max(array)
Arguments
array: Any ARRAY with elements for which order is supported.
Returns
The result matches the type of the elements.
NULL elements are skipped.
If array is empty, or contains only NULL elements, NULL is returned.
Examples
> SELECT array_max(array(1, 20, NULL, 3));
20