public List<String> getAlterTableStmtTableStatsColsAll(Table tbl)
    throws HiveException {
    List<String> alterTblStmt = new ArrayList<>();
    List<String> accessedColumns = getTableColumnNames(tbl);
    List<ColumnStatisticsObj> tableColumnStatistics = Hive.get().getTableColumnStatistics(
        tbl, accessedColumns, true);
    
    ColumnStatisticsObj[] columnStatisticsObj = tableColumnStatistics.toArray(new ColumnStatisticsObj[0]);
    for (ColumnStatisticsObj statisticsObj : columnStatisticsObj) {
      alterTblStmt.add(getAlterTableStmtCol(
          statisticsObj.getStatsData(), statisticsObj.getColName(), tbl.getTableName(), tbl.getDbName()));
      String base64BitVector = checkBitVectors(statisticsObj.getStatsData());
      if (base64BitVector != null) {
        ST command = new ST(EXIST_BIT_VECTORS);
        command.add(DATABASE_NAME, unparseIdentifier(tbl.getDbName()));
        command.add(TABLE_NAME, unparseIdentifier(tbl.getTableName()));
        command.add(COLUMN_NAME, unparseIdentifier(statisticsObj.getColName()));
        command.add(BASE_64_VALUE, base64BitVector);
        alterTblStmt.add(command.render());
      }
      String base64Histogram = checkHistogram(statisticsObj.getStatsData());
      if (base64Histogram != null) {
        ST command = new ST(EXIST_HISTOGRAM);
        command.add(DATABASE_NAME, unparseIdentifier(tbl.getDbName()));
        command.add(TABLE_NAME, unparseIdentifier(tbl.getTableName()));
        command.add(COLUMN_NAME, unparseIdentifier(statisticsObj.getColName()));
        command.add(BASE_64_VALUE, base64Histogram);
        alterTblStmt.add(command.render());
      }
    }
    return alterTblStmt;
  }
Parses the ColumnStatistics for all the columns in a given table and adds the alter table update
statistics command for each column.

@param tbl
ql/src/java/org/apache/hadoop/hive/ql/exec/DDLPlanUtils.java