VECTOR_MAX

functionsupportedAI & ML

docs.snowflake.com ↗

Vector functionsAggregate functions

Computes the element-wise maximum of vectors in an aggregate. Returns a vector where each element is the maximum of the corresponding elements across all input vectors.

Syntax

VECTOR_MAX( <vector_column> )

Parameters

NameRequiredDescription
vector_columnrequiredA column containing VECTOR values. All vectors in the column must have the same element type and dimension.

Returns

Returns a VECTOR value with the same element type and dimension as the input vectors. Each element in the result vector is the maximum of the corresponding elements across all input vectors.

Usage notes

See also

Referenced by