Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-1298

GROUP BY can cause a warning from QueryIteratorCheck.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Jena 3.2.0
    • Jena 3.3.0
    • None
    • None

    Description

      Example:

      public class CheckQueryIterator {
      
          public static void main(String... args) {
              String queryStr = "SELECT ?s { } GROUP BY ?s";
              Query query = QueryFactory.create(queryStr);
              Model model = ModelFactory.createDefaultModel();
              try(QueryExecution qe = QueryExecutionFactory.create(query, model)) {
                  ResultSet rs = qe.execSelect();
                  // Do not "hasNext"
                  //rs.hasNext();
              }
          }
      

      Key feature: not touching the "group", going straight to QueryExecution.close().

      This does not cause any incorrect query results.

      Attachments

        Activity

          People

            andy Andy Seaborne
            andy Andy Seaborne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: