Open danthegoodman1 opened 1 year ago
Very similar to the function bindings, but can be used as an aggregate function. For example a query could be:
select myfunc(colA), colB from t group by colB
Where:
def myfunc(prev: int | None, row: int) -> int: return 2*row + prev if prev != None else 0
(don't even know if that's valid python just a random example)
prev being an accumulator, and row being the current row
prev
row
Very similar to the function bindings, but can be used as an aggregate function. For example a query could be:
Where:
(don't even know if that's valid python just a random example)
prev
being an accumulator, androw
being the current row