[ 
https://issues.apache.org/jira/browse/JENA-587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13819993#comment-13819993
 ] 

Rob Vesse edited comment on JENA-587 at 11/12/13 10:56 AM:
-----------------------------------------------------------

More recent versions of ARQ automatically optimise DISTINCT -> REDUCED which 
may leave some duplicates.

Due to the predictable way in which TDB returns scan results and ARQ executes 
joins for most queries this is a non-issue since the two queries will be 
equivalent since REDUCED in ARQ eliminates neighbouring non-distinct solutions.

This behaviour can be turned off like so:

{noformat}
ARQ.getContext().set(ARQ.optDistinctToReduced, false)
{noformat}


was (Author: rvesse):
More recent of versions automatically optimise DISTINCT -> REDUCED which may 
leave some duplicates.

Due to the predictable way in which TDB returns scan results and ARQ executes 
joins for most queries this is a non-issue since the two queries will be 
equivalent since REDUCED in ARQ eliminates neighbouring non-distinct solutions.

This behaviour can be turned off like so:

{noformat}
ARQ.getContext().set(ARQ.optDistinctToReduced, false)
{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: bug Jena2.11.0.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)

Reply via email to