The simple aggregate grouped calling pattern totals the input values of all rows in the group and produces a result. _reset_extfn identifies the beginning of a group.
_start_extfn(cntxt) _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=4 _next_value_extfn(cntxt, args) -- input a=5 _next_value_extfn(cntxt, args) -- input a=6 _evaluate_extfn(cntxt, args) -- returns 15 _finish_extfn(cntxt)