@HiveDecimalVersionV2
  public static HiveDecimal create(boolean isNegative, byte[] bytes, int scale) {
    HiveDecimal result = new HiveDecimal();
    if (!result.fastSetFromDigitsOnlyBytesAndScale(
        isNegative, bytes, 0, bytes.length, scale)) {
      return null;
    }
    if (isNegative) {
      result.fastNegate();
    }
    return result;
  }
This method takes in digits only UTF-8 characters, a sign flag, and a scale and returns
a decimal.
storage-api/src/java/org/apache/hadoop/hive/common/type/HiveDecimal.java