public static int compare(HiveDecimal left, HiveDecimalWritable writableRight) {
    return HiveDecimalWritable.compareTo(left, writableRight);
  }
Utility functions for vector operations on decimal values.
ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/DecimalUtil.java