private String getColumnType(Table table, String columnName) throws SemanticException {
    for (FieldSchema column : table.getCols()) {
      if (columnName.equalsIgnoreCase(column.getName())) {
        return column.getType();
      }
    }

    throw new SemanticException("column type not found");
  }
Analyzer for update column statistics commands.
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/misc/columnstats/AlterTableUpdateColumnStatistictAnalyzer.java