Module lead_lag

Module lead_lag 

Source
Expand description

lead and lag window function implementations

Structsยง

WindowShift
window shift expression
WindowShiftEvaluator ๐Ÿ”’

Enumsยง

WindowShiftKind

Staticsยง

LAG_DOCUMENTATION ๐Ÿ”’
LEAD_DOCUMENTATION ๐Ÿ”’
NULL_FIELD ๐Ÿ”’

Functionsยง

evaluate_all_with_ignore_null ๐Ÿ”’
get_lag_doc ๐Ÿ”’
get_lead_doc ๐Ÿ”’
lag
Create an expression to represent the lag window function
lag_udwf
Returns a WindowUDF for lag.
lead
Create an expression to represent the lead window function
lead_udwf
Returns a WindowUDF for lead.
parse_default_value ๐Ÿ”’
Handles type coercion and null value refinement for default value argument depending on the data type of the input expression.
parse_expr ๐Ÿ”’
When lead/lag is evaluated on a NULL expression we attempt to refine it by matching it with the type of the default value.
parse_expr_field ๐Ÿ”’
Returns the field of the default value(if provided) when the expression is NULL.
shift_with_default_value ๐Ÿ”’