use of io.crate.types.ArrayType in project crate by crate.
the class PercentileAggregationTest method testReturnTypes.
@Test
public void testReturnTypes() throws Exception {
FunctionIdent synopsis1 = new FunctionIdent(NAME, ImmutableList.<DataType>of(DataTypes.DOUBLE, DataTypes.DOUBLE));
assertEquals(DataTypes.DOUBLE, functions.get(synopsis1).info().returnType());
FunctionIdent synopsis2 = new FunctionIdent(NAME, ImmutableList.<DataType>of(DataTypes.DOUBLE, new ArrayType(DataTypes.DOUBLE)));
assertEquals(new ArrayType(DataTypes.DOUBLE), functions.get(synopsis2).info().returnType());
}
Aggregations