protected void evaluate(TimestampColumnVector outputColVector, BytesColumnVector inputColVector, int i) {
    try {
      org.apache.hadoop.hive.common.type.Timestamp timestamp =
          PrimitiveObjectInspectorUtils.getTimestampFromString(
              new String(
                  inputColVector.vector[i], inputColVector.start[i], inputColVector.length[i],
                  "UTF-8"));
      outputColVector.set(i, timestamp.toSqlTimestamp());
    } catch (Exception e) {
      setNull(outputColVector, i);
    }
  }
Casts a string vector to a Timestamp vector.
ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/CastStringToTimestamp.java