Open AndrewSisley opened 2 years ago
Having a look at this for 0.3.1, might descope it again if I think it is too much
I thought about it, is not worth doing this now, especially given that arrays are all read into memory at the moment anyway. Might include additional locally-scoped refactorings with the array-order ticket, but nothing significant for 0.3.1
At the moment limt, filter etc have to be explicitly performed within aggregate nodes. This is due to both inline arrays (no current way to stream their items through nodes, e.g. limit), and because of the way grouping works (single pass).
Have a bit of a think on this and see if we can remove some of this duplication - it will continue to grow as more aggregates get added, and as more options get added to them.