public static TableDesc getTableDesc(Class<? extends Deserializer> serdeClass,
      String separatorCode, String columns, String columnTypes, List<FieldSchema> partCols,
      boolean lastColumnTakesRestOfTheLine) {

    return getTableDesc(serdeClass, separatorCode, columns, columnTypes, partCols,
        lastColumnTakesRestOfTheLine, "TextFile");
  }
Generate the table descriptor of MetadataTypedColumnsetSerDe with the
separatorCode and column names (comma separated string), and whether the
last column should take the rest of the line.
ql/src/java/org/apache/hadoop/hive/ql/plan/PlanUtils.java