@Override
  public int precision() {
    return HiveDecimalUtils.getPrecisionForType(typeInfo);
  }
Default implementation.  Maybe overridden by exact types.
serde/src/java/org/apache/hadoop/hive/serde2/objectinspector/primitive/AbstractPrimitiveObjectInspector.java