private static boolean doAlternateSetFromBigIntegerBytesAndScale(
      byte[] bytes, int offset, int length, int scale,
      FastHiveDecimal fastResult) {

    byte[] byteArray = Arrays.copyOfRange(bytes, offset, offset + length);

    BigInteger bigInteger = new BigInteger(byteArray);
    // System.out.println("doAlternateSetFromBigIntegerBytesAndScale bigInteger " + bigInteger);
    BigDecimal bigDecimal = new BigDecimal(bigInteger, scale);
    // System.out.println("doAlternateSetFromBigIntegerBytesAndScale bigDecimal " + bigDecimal);
    fastResult.fastReset();
    return fastSetFromBigDecimal(bigDecimal, true, fastResult);
  }
When fastSetFromBigIntegerBytesAndScale can handle the input because it is too large,
we fall back to this.
storage-api/src/java/org/apache/hadoop/hive/common/type/FastHiveDecimalImpl.java