[
https://issues.apache.org/jira/browse/JENA-587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13820008#comment-13820008
]
Andy Seaborne edited comment on JENA-587 at 11/12/13 11:01 AM:
---------------------------------------------------------------
This is not TDB related. See attached files D.ttl and Q.rq
he issue seems to be that the DISTINCT variables and the ORDER BY do not align
so the "reduced" assumption is invalid. Maybe it just needs to test that the
ORDER BY covers the DISTINCT projection.
Running from the command line:
{noformat}
sparql --data D.ttl --file Q.rq
{noformat}
{noformat}
sparql --set arq:optDistinctToReduced=false --data D.ttl --file Q.rq
{noformat}
gives different answers (the second is right, the first has duplicates).
was (Author: andy.seaborne):
This is not TDB related. See attached files D.ttl and Q.rq
he issue seems to be that the DISTINCT variables and the ORDER BY do not align
so the "reduced" assumption is invalid. Maybe it just needs to test that the
ORDER BY covers the DISTINCT projection.
Running from the command line:
{noformat}
sparql --data D.ttl --file Q.rq
{noformat}
{noformat}
sparql --set arq:optDistinctToReduced=false --data D.ttl --file Q.rq
{noformat}
> SELECT DISTINCT returns duplicate results
> -----------------------------------------
>
> Key: JENA-587
> URL: https://issues.apache.org/jira/browse/JENA-587
> Project: Apache Jena
> Issue Type: Bug
> Components: ARQ
> Affects Versions: Jena 2.11.0
> Reporter: Veyriere
> Attachments: D.ttl, Q.rq, bug Jena2.11.0.zip, jena-587.zip
>
>
> SELECT DISTINCT returns duplicate results. Attaching a small quads dump and
> the query to reproduce with TDB
> Reproduced with Jena 2.11.0 and Jena 2.10.1 (was working with 2.7.4)
--
This message was sent by Atlassian JIRA
(v6.1#6144)