Andy Seaborne created JENA-1298:
-----------------------------------
Summary: GROUP BY can cause a warning from QueryIteratorCheck.
Key: JENA-1298
URL: https://issues.apache.org/jira/browse/JENA-1298
Project: Apache Jena
Issue Type: Bug
Affects Versions: Jena 3.2.0
Reporter: Andy Seaborne
Assignee: Andy Seaborne
Priority: Minor
Example:
{noformat}
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();
}
}
{noformat}
Key feature: not touching the "group", going straight to
{{QueryExecution.close()}}.
This does not cause any incorrect query results.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)