use of org.apache.hadoop.hive.ql.exec.vector.util.FakeVectorRowBatchFromObjectIterables in project hive by apache.
the class TestVectorGroupByOperator method testAggregateDouble.
public void testAggregateDouble(String aggregateName, int batchSize, Iterable<Object> values, Object expected) throws HiveException {
@SuppressWarnings("unchecked") FakeVectorRowBatchFromObjectIterables fdr = new FakeVectorRowBatchFromObjectIterables(batchSize, new String[] { "double" }, values);
testAggregateDoubleIterable(aggregateName, fdr, expected);
}
use of org.apache.hadoop.hive.ql.exec.vector.util.FakeVectorRowBatchFromObjectIterables in project hive by apache.
the class TestVectorGroupByOperator method testAggregateDoubleStringKeyAggregate.
public void testAggregateDoubleStringKeyAggregate(String aggregateName, int batchSize, Iterable<Object> list, Iterable<Object> values, HashMap<Object, Object> expected) throws HiveException {
@SuppressWarnings("unchecked") FakeVectorRowBatchFromObjectIterables fdr = new FakeVectorRowBatchFromObjectIterables(batchSize, new String[] { "string", "double" }, list, values);
testAggregateStringKeyIterable(aggregateName, fdr, TypeInfoFactory.doubleTypeInfo, expected);
}
use of org.apache.hadoop.hive.ql.exec.vector.util.FakeVectorRowBatchFromObjectIterables in project hive by apache.
the class TestVectorGroupByOperator method testAggregateStringKeyAggregate.
public void testAggregateStringKeyAggregate(String aggregateName, int batchSize, Iterable<Object> list, Iterable<Object> values, HashMap<Object, Object> expected) throws HiveException {
@SuppressWarnings("unchecked") FakeVectorRowBatchFromObjectIterables fdr = new FakeVectorRowBatchFromObjectIterables(batchSize, new String[] { "string", "long" }, list, values);
testAggregateStringKeyIterable(aggregateName, fdr, TypeInfoFactory.longTypeInfo, expected);
}
Aggregations