private Writable getWritableValue(TypeInfo ti, HiveDecimal value) {
    return new HiveDecimalWritable(value);
  }
Unit tests for vector expression writers.
ql/src/test/org/apache/hadoop/hive/ql/exec/vector/expressions/TestVectorExpressionWriters.java