public DoubleWritable evaluate(NullWritable i) {
    return null;
  }
Convert from void to a double. This is called for CAST(... AS DOUBLE)

@param i
         The void value to convert
@return DoubleWritable
ql/src/java/org/apache/hadoop/hive/ql/udf/UDFToDouble.java