@Override
  public void setTypeInfo(TypeInfo typeInfo) throws UDFArgumentException {
    this.typeInfo = (CharTypeInfo) typeInfo;
  }
Provide char type parameters for the output object inspector.
This should be done before the UDF is initialized.
ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFToChar.java