Expand description
Defines the FIRST_VALUE/LAST_VALUE aggregations.
Structs§
- First
Value - First
Value Accumulator - Last
Value - Trivial
First Value Accumulator - This accumulator is used when there is no ordering specified for the
FIRST_VALUE
aggregation. It simply returns the first value it sees according to the pre-existing ordering of the input data, and provides a fast path for this case without needing to maintain any ordering state. - Trivial
Last Value Accumulator - This accumulator is used when there is no ordering specified for the
LAST_VALUE
aggregation. It simply updates the last value it sees according to the pre-existing ordering of the input data, and provides a fast path for this case without needing to maintain any ordering state.
Functions§
- first_
value - Returns the first value in a group of values.
- first_
value_ udaf - AggregateFunction that returns a
AggregateUDF
forFirstValue
- last_
value - Returns the last value in a group of values.
- last_
value_ udaf - AggregateFunction that returns a
AggregateUDF
forLastValue