super.write(obj);
if (obj != null) {
HiveDecimal decimal = ((HiveDecimalObjectInspector) inspector).
getPrimitiveJavaObject(obj);
SerializationUtils.writeBigInteger(valueStream,
decimal.unscaledValue());
scaleStream.write(decimal.scale());
indexStatistics.updateDecimal(decimal);
}
}