@Test
public void testArray()
throws Exception
{
ArrayType arrayType = new ArrayType(BigintType.BIGINT);
InternalAggregationFunction stringAgg = metadata.getFunctionRegistry().getAggregateFunctionImplementation(new Signature("checksum", AGGREGATE, VarbinaryType.VARBINARY.getTypeSignature(), arrayType.getTypeSignature()));
Block block = createArrayBigintBlock(asList(null, asList(1L, 2L), asList(3L, 4L), asList(5L, 6L)));
assertAggregation(stringAgg, 1.0, expectedChecksum(arrayType, block), block);
}