@Override
  public void init(ByteArrayRef bytes, int start, int length) {

    // Set the HiveDecimalWritable from bytes without converting to String first for
    // better performance.
    data.setFromBytes(bytes.getData(), start, length, true);
    if (!data.isSet()) {
      isNull = true;
    } else {
      isNull = !data.mutateEnforcePrecisionScale(precision, scale);
    }
    if (isNull) {
      LOG.debug("Data not in the HiveDecimal data type range so converted to null. Given data is :"
          + new String(bytes.getData(), start, length, StandardCharsets.UTF_8));
    }
  }
Initializes LazyHiveDecimal object by interpreting the input bytes
as a numeric string

@param bytes
@param start
@param length
serde/src/java/org/apache/hadoop/hive/serde2/lazy/LazyHiveDecimal.java