Assume the UDF my_sum works like the built-in SUM. If _drop_value_extfn function is not supplied, this moving window count is evaluated through the following calling pattern. This case is similar to the previous moving window examples, but the current row is not part of the window frame.
_start_extfn(cntxt) _reset_extfn(cntxt) _evaluate_extfn(cntxt, args) returns NULL _reset_extfn(cntxt) _next_value_extfn(cntxt, args) input a=1 _evaluate_extfn(cntxt, args) returns 1 _reset_extfn(cntxt) _next_value_extfn(cntxt, args) input a=1 _next_value_extfn(cntxt, args) input a=2 _evaluate_extfn(cntxt, args) returns 3 _reset_extfn(cntxt) _next_value_extfn(cntxt, args) input a=1 _next_value_extfn(cntxt, args) input a=2 _next_value_extfn(cntxt, args) input a=3 _evaluate_extfn(cntxt, args) returns 6 _reset_extfn(cntxt) _next_value_extfn(cntxt, args) input a=2 _next_value_extfn(cntxt, args) input a=3 _next_value_extfn(cntxt, args) input a=4 _evaluate_extfn(cntxt, args) returns 9 _reset_extfn(cntxt) _next_value_extfn(cntxt, args) input a=3 _next_value_extfn(cntxt, args) input a=4 _next_value_extfn(cntxt, args) input a=5 _evaluate_extfn(cntxt, args) returns 12 _finish_extfn(cntxt)