Skip to main content

first_value

Function first_value 

Source
pub fn first_value<'a, V, E>(expr: E) -> WindowFnExpr<'a, V, E::SQLType, Null>
where V: SQLParam + 'a, E: Expr<'a, V>,
Expand description

FIRST_VALUE(expr) — value of expr from the first row of the frame.

Always nullable (frame may be empty for some edge cases).