@HiveDecimalVersionV1
  public HiveDecimal remainder(HiveDecimal divisor) {
    HiveDecimal result = new HiveDecimal();
    if (!fastRemainder(
        divisor,
        result)) {
      return null;
    }
    return result;
  }
Divides this decimal by another decimal and returns a new decimal with the remainder of the
division.
<p>
value is (decimal % divisor)
<p>
The remainder is equivalent to BigDecimal:
   bigDecimalValue().subtract(bigDecimalValue().divideToIntegralValue(divisor).multiply(divisor))
storage-api/src/java/org/apache/hadoop/hive/common/type/HiveDecimal.java