public String getAlterTableStmtPartitionStatsBasic(Partition pt) {
    Map<String, String> parameters = pt.getParameters();
    ST command = new ST(ALTER_TABLE_UPDATE_STATISTICS_PARTITION_BASIC);
    command.add(DATABASE_NAME, unparseIdentifier(pt.getTable().getDbName()));
    command.add(TABLE_NAME, unparseIdentifier(pt.getTable().getTableName()));
    command.add(PARTITION_NAME, getPartitionActualName(pt));
    command.add(TBLPROPERTIES, paramToValues(parameters));
    if (checkIfDefaultPartition(pt.getName())) {
      command.add(COMMENT_SQL, "--");
    }
    return command.render();
  }
Parses the basic table statistics for the given table.

@param pt
@return Returns the alter table .... update statistics for partition.
ql/src/java/org/apache/hadoop/hive/ql/exec/DDLPlanUtils.java