Array maximum

Supported in: Batch, Streaming

Returns the maximum value of an array column.

Expression categories: Array

Declared arguments

  • Expression - Array from which to return the maximum element.
    Expression<Array<T>>

Type variable bounds: T accepts Numeric

Output type: T

Examples

Example 1: Base case

Argument values:

  • Expression: [ 1, 2, 3 ]

Output: 3


Example 2: Null case

Argument values:

  • Expression: array
arrayOutput
nullnull
[ 1, null ]1