byte[] validatedScaledDecimal(int inpScale) {
      hiveDecimalWritable.mutateEnforcePrecisionScale(hivePrecision, hiveScale);
      if (hiveDecimalWritable.isSet()) {
        this.isValid = true;
        return hiveDecimalWritable.getHiveDecimal().bigIntegerBytesScaled(inpScale);
      } else {
        this.isValid = false;
        return null;
      }
    }
Helper function to validate decimal data in hiveDecimalWritable can be read as the decimal
type defined in HMS.  Sets the isValid to true if the data can be read as decimal, otherwise
false.
@return null if the data is invalid, other a validated hivedecimalwritable
ql/src/java/org/apache/hadoop/hive/ql/io/parquet/vector/ParquetDataColumnReaderFactory.java