private void compareResults(Object[] nonIndexedResults, Object[] indexedResults, String[] queries,
      boolean sizeOnly) {
    if (sizeOnly) {
      for (int i = 0; i < queries.length; i++) {
        assertTrue(((SelectResults) nonIndexedResults[i])
            .size() == ((SelectResults) indexedResults[i]).size());
        assertTrue(((SelectResults) nonIndexedResults[i]).size() > 0);
      }
    } else {
      StructSetOrResultsSet util = new StructSetOrResultsSet();
      for (int i = 0; i < queries.length; i++) {
        Object[][] resultsToCompare = new Object[1][2];
        resultsToCompare[0][0] = nonIndexedResults[i];
        resultsToCompare[0][1] = indexedResults[i];
        util.CompareQueryResultsWithoutAndWithIndexes(resultsToCompare, 1,
            new String[] {queries[i]});
        assertTrue(((SelectResults) nonIndexedResults[i]).size() > 0);
      }
    }
  }
We do not want to test this with Primary Key on the many side or else only 1 result will be
returned
geode-core/src/integrationTest/java/org/apache/geode/cache/query/internal/index/EquiJoinIntegrationTest.java