ReviewOS

stacks/bun-query-builder

Generalized window functions (lag/lead/sumOver/avgOver/countOver)

#1050
Closed glennmichael123 opened this 22 days ago · 0 comments
22 days ago

Summary

Window support is limited to rowNumber/rank/denseRank, which already build OVER (PARTITION BY ... ORDER BY ...). Generalize into a window(fn, { partitionBy, orderBy, frame }) or add lag/lead/sumOver/avgOver helpers reusing the existing overParts builder.

Effort: M (OVER-clause assembly already present). Location: src/client.ts:~2889-2924. Found via internal code audit.

Sign in to comment on this issue.