assertEquals(getActualValue(function), expectedValue);
}
private UncompressedBlock performPartialAggregation(Block block)
{
BlockBuilder blockBuilder = new BlockBuilder(getFunction().getIntermediateTupleInfo());
BlockCursor cursor = block.cursor();
while (cursor.advanceNextPosition()) {
Aggregator function = createAggregator(aggregation(getFunction(), new Input(0, 0)), Step.PARTIAL);
function.addValue(cursor);
BlockCursor result = function.getResult().cursor();
assertTrue(result.advanceNextPosition());
Tuple tuple = result.getTuple();
blockBuilder.append(tuple);
}
return blockBuilder.build();
}