Skip to content
REFERENCE

Additional Aggregate Functions

A list of available functions to perform aggregate calculations


Returns the first value (null or non-null) from arg. This function is affected by ordering.

first_value(arg: ANY) -> ANY

Returns the last value (null or non-null) from arg. This function is affected by ordering.

last_value(arg: ANY) -> ANY

Returns an arbitrary value (NULL or non-NULL) from arg. This function is affected by ordering.

arbitrary(arg: ANY) -> ANY

Returns the first non-null value from arg. This function is affected by ordering.

any_value(arg: ANY) -> ANY