public void getAlterTableStmtNotNullConstraint(NotNullConstraint nc, Table tb, List<String> constraints) {
    if (!NotNullConstraint.isNotEmpty(nc)) {
      return;
    }
    Map<String, String> colType = getTableColumnsToType(tb);
    Map<String, String> notNullConstraints = nc.getNotNullConstraints();
    Map<String, List<String>> enableValidateRely = nc.getEnableValidateRely();
    for (String constraintName : notNullConstraints.keySet()) {
      ST command = new ST(ALTER_TABLE_ADD_NOT_NULL_CONSTRAINT);
      command.add(DATABASE_NAME, unparseIdentifier(nc.getDatabaseName()));
      command.add(TABLE_NAME, unparseIdentifier(nc.getTableName()));
      command.add(COLUMN_NAME, unparseIdentifier(notNullConstraints.get(constraintName)));
      command.add(COL_TYPE, colType.get(notNullConstraints.get(constraintName)));
      command.add(CONSTRAINT_NAME, unparseIdentifier(constraintName));
      command.add(ENABLE, enableValidateRely.get(constraintName).get(0));
      command.add(VALIDATE, enableValidateRely.get(constraintName).get(1));
      command.add(RELY, enableValidateRely.get(constraintName).get(2));
      constraints.add(command.render());
    }
  }
Parses the basic table statistics for the given table.

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