You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (JIRA)" <ji...@apache.org> on 2017/03/01 15:51:45 UTC
[jira] [Resolved] (JENA-1298) GROUP BY can cause a warning from
QueryIteratorCheck.
[ https://issues.apache.org/jira/browse/JENA-1298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy Seaborne resolved JENA-1298.
---------------------------------
Resolution: Fixed
Fix Version/s: Jena 3.3.0
> 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
> Fix For: Jena 3.3.0
>
>
> 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)