Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
Jena 3.6.0
-
None
-
None
Description
Ordering an empty result set must not introduce additional bindings, but this happens with the following example (run on an arbitrary dataset - including an empty one):
./fuseki-server --file=test.ttl /foobar
The Json below is obtained from the Fuski bundle; but I noted this issue first using the ARQ API, where the incorrect result set contains a single BindingProjectNamed instance.
SELECT ?s WHERE { ?s ?p ?o FILTER(false) } GROUP BY ?s ORDER BY DESC(COUNT(?o))
{ "head": { "vars": [ "s" ] } , "results": { "bindings": [ { # NOTE THIS EMPTY BINDING HERE! } ] } }
The result set is correct without the ORDER BY:
SELECT ?s WHERE { ?s ?p ?o FILTER(false) } GROUP BY ?s
{ "head": { "vars": [ "s" ] } , "results": { "bindings": [ # CORRECT ] } }
Attachments
Issue Links
- is superceded by
-
JENA-1507 GROUP BY and aggregates when there are no matching of the WHERE pattern.
- Closed