last_value
aggregate function
Returns the last value of expr
for the group of rows.
Arguments
expr
: An expression of any type.ignoreNull
: A optional BOOLEAN literalcond
: An optional boolean expression filtering the rows used for aggregation.IGNORE NULLS
orRESPECT NULLS
: WhenIGNORE NULLS
is used orignoreNull
istrue
anyexpr
value that is NULL is ignored. The default isRESPECT NULLS
.
Returns
The result type matches expr
.
The function is a synonym for last aggregate function.
This function is non-deterministic.