public static void sign(int i, HiveDecimal input, LongColumnVector outputColVector) {
    outputColVector.vector[i] = input.signum();
  }
Utility functions for vector operations on decimal values.
ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/DecimalUtil.java