protected static String genRewrittenQuery(Table tbl,
      HiveConf conf, List<TransformSpec> partTransformSpec, Map<String, String> partSpec, 
      boolean isPartitionStats) {
    List<String> colNames = Utilities.getColumnNamesFromFieldSchema(tbl.getCols());
    List<String> colTypes = ColumnStatsSemanticAnalyzer.getColumnTypes(tbl, colNames);
    return ColumnStatsSemanticAnalyzer.genRewrittenQuery(
        tbl, colNames, colTypes, conf, partTransformSpec, -1, partSpec, isPartitionStats, true);
  }
Generates a SQL statement that will compute the stats for all columns
included in the input table.
ql/src/java/org/apache/hadoop/hive/ql/parse/ColumnStatsSemanticAnalyzer.java