assertAggregation(getFunction(), getExpectedValue(2, 4), 4, getSequenceBlock(2, 4));
}
public Block createAlternatingNullsBlock(Block sequenceBlock)
{
BlockBuilder blockBuilder = new BlockBuilder(sequenceBlock.getTupleInfo());
BlockCursor cursor = sequenceBlock.cursor();
while (cursor.advanceNextPosition()) {
blockBuilder.appendNull().append(cursor.getTuple());
}
return blockBuilder.build();
}