datafusion_functions_window::lead_lag

Function lag_udwf

Source
pub fn lag_udwf() -> Arc<WindowUDF>
Expand description

Returns a WindowUDF for lag.

Returns the row value that precedes the current row by a specified offset within partition. If no such row exists, then returns the default value.