Throw an exception when using a partial aggregator after a sorted group by