private List<String> getMyISAMTables() throws SQLException {
    if (!configuration.getDatabaseType().equals(Configuration.DatabaseType.MYSQL)) {
      return Collections.emptyList();
    }
    List<String> myISAMTables = new ArrayList<>();
    String query = String.format("SELECT table_name FROM information_schema.tables WHERE table_schema = '%s' " +
      "AND engine = 'MyISAM' AND table_type = 'BASE TABLE'", configuration.getServerDBName());
    Statement statement = null;
    ResultSet rs = null;
    try {
      statement = dbAccessor.getConnection().createStatement();
      rs = statement.executeQuery(query);
      if (rs != null) {
        while (rs.next()) {
          myISAMTables.add(rs.getString("table_name"));
        }
      }
    } finally {
      JdbcUtils.closeResultSet(rs);
      JdbcUtils.closeStatement(statement);
    }
    return myISAMTables;
  }
Checks if source version meets minimal requirements for upgrade

@param minUpgradeVersion min allowed version for the upgrade, could be obtained via {@link #getMinimalUpgradeCatalogVersion()}
@param sourceVersion current version of the Database, which need to be upgraded

@return  true if upgrade is allowed or false if not
ambari-server/src/main/java/org/apache/ambari/server/upgrade/SchemaUpgradeHelper.java