@HiveDecimalVersionV1
  public HiveDecimalV1 pow(int n) {
    BigDecimal result = normalize(bd.pow(n), false);
    return result == null ? null : new HiveDecimalV1(result);
  }
Note - this method will corrupt the value if it doesn't fit.
storage-api/src/java/org/apache/hadoop/hive/common/type/HiveDecimalV1.java