super(resultIterator, aggregators);
}
@Override
public Tuple next() throws SQLException {
Tuple result = super.next();
// Ensure ungrouped aggregregation always returns a row, even if the underlying iterator doesn't.
if (result == null && !hasRows) {
// Generate value using unused ClientAggregators
byte[] value = aggregators.toBytes(aggregators.getAggregators());
result = new SingleKeyValueTuple(