Skip to main content

lead_with_default

Function lead_with_default 

Source
pub fn lead_with_default<'a, V, E, D>(
    expr: E,
    offset: usize,
    default: D,
) -> WindowFnExpr<'a, V, E::SQLType, <E::Nullable as NullOr<D::Nullable>>::Output>
where V: SQLParam + 'a, E: Expr<'a, V>, D: Expr<'a, V>, E::SQLType: Compatible<D::SQLType>, E::Nullable: NullOr<D::Nullable>, D::Nullable: Nullability,
Expand description

LEAD(expr, offset, default) — value of expr from N rows ahead with a default.

Nullability is the combination of the expression’s and default’s nullability.