public static List<String> getColumnTypes(Properties props) {
    List<String> names = new ArrayList<String>();
    String colNames = props.getProperty(serdeConstants.LIST_COLUMN_TYPES);
    ArrayList<TypeInfo> cols = TypeInfoUtils.getTypeInfosFromTypeString(colNames);
    for (TypeInfo col : cols) {
      names.add(col.getTypeName());
    }
    return names;
  }
Note: This will not return the correct number of columns in the case of
Avro serde using an external schema URL, unless these properties have been
used to initialize the Avro SerDe (which updates these properties).
@param props TableDesc properties
@return list of column names based on the table properties
ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java