private void evaluate(LongColumnVector outputColVector, BytesColumnVector inputColVector, int i) {
    try {
      HiveIntervalYearMonth interval = HiveIntervalYearMonth.valueOf(
          new String(inputColVector.vector[i], inputColVector.start[i], inputColVector.length[i], "UTF-8"));
      outputColVector.vector[i] = interval.getTotalMonths();
    } catch (Exception e) {
      outputColVector.vector[i] = 1;
      outputColVector.isNull[i] = true;
      outputColVector.noNulls = false;
    }
  }
Casts a string vector to a interval year-month vector.
ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/CastStringToIntervalYearMonth.java