return true;
}
private boolean aggregatorsOutputIsPrimitive(AggregationDesc aggDesc, boolean isReduce) {
VectorizationContext vc = new ValidatorVectorizationContext();
VectorAggregateExpression vectorAggrExpr;
try {
vectorAggrExpr = vc.getAggregatorExpression(aggDesc, isReduce);
} catch (Exception e) {
// We should have already attempted to vectorize in validateAggregationDesc.
LOG.info("Vectorization of aggreation should have succeeded ", e);
return false;
}
ObjectInspector outputObjInspector = vectorAggrExpr.getOutputObjectInspector();
if (outputObjInspector.getCategory() == ObjectInspector.Category.PRIMITIVE) {
return true;
}
return false;
}