Open
Description
An aggregation like r(choose<x>)
will currently iterate over all values in r
, then select the 1st value (the full example is here.
That's O(n) for what should be O(1).
Ideally we make a special case for group-bys that can terminate early?