@AggregationType(estimable = true)
public class DecimalStatsAgg extends NumericStatsAgg {
@Override
public int estimate() {
JavaDataModel model = JavaDataModel.get();
return super.estimate() + model.lengthOfDecimal() * 2;
}
@Override
protected void update(Object p, PrimitiveObjectInspector inputOI) {
HiveDecimal v = PrimitiveObjectInspectorUtils.getHiveDecimal(p, inputOI);