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 (Created) (JIRA)" <ji...@apache.org> on 2012/02/16 20:50:59 UTC

[jira] [Created] (JENA-211) DISTINCT isn't distinct in the presence of anon variables.

DISTINCT isn't distinct in the presence of anon variables.
----------------------------------------------------------

                 Key: JENA-211
                 URL: https://issues.apache.org/jira/browse/JENA-211
             Project: Jena
          Issue Type: Bug
          Components: ARQ
    Affects Versions: ARQ 2.9.0
            Reporter: Andy Seaborne
            Assignee: Andy Seaborne


The DISTINCT (and REDUCED) iterators don't mask hidden variables (bnodes and rewrite-introducded hdden variables)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (JENA-211) DISTINCT isn't distinct in the presence of anon variables.

Posted by "Andy Seaborne (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JENA-211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Seaborne updated JENA-211:
-------------------------------

    Attachment: jena-211-distinct.patch

Stephen,

The bug is not to do with the distinct code per-se.  It's the binding it is asked to process - it should have unnamed variables hidden.

I changed QueryIterDistinct to use the common QueryIterDistinctReduced mechanism so the mechanism can be shared by "reduced" and "distinct".

Patch attached for reference - I have applied it because it blocking other work.

    Andy

                
> DISTINCT isn't distinct in the presence of anon variables.
> ----------------------------------------------------------
>
>                 Key: JENA-211
>                 URL: https://issues.apache.org/jira/browse/JENA-211
>             Project: Jena
>          Issue Type: Bug
>          Components: ARQ
>    Affects Versions: ARQ 2.9.0
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>         Attachments: jena-211-distinct.patch
>
>
> The DISTINCT (and REDUCED) iterators don't mask hidden variables (bnodes and rewrite-introducded hdden variables)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (JENA-211) DISTINCT isn't distinct in the presence of anon variables.

Posted by "Andy Seaborne (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JENA-211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Seaborne closed JENA-211.
------------------------------

    
> DISTINCT isn't distinct in the presence of anon variables.
> ----------------------------------------------------------
>
>                 Key: JENA-211
>                 URL: https://issues.apache.org/jira/browse/JENA-211
>             Project: Jena
>          Issue Type: Bug
>          Components: ARQ
>    Affects Versions: ARQ 2.9.0
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>         Attachments: jena-211-distinct.patch
>
>
> The DISTINCT (and REDUCED) iterators don't mask hidden variables (bnodes and rewrite-introducded hdden variables)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (JENA-211) DISTINCT isn't distinct in the presence of anon variables.

Posted by "Andy Seaborne (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JENA-211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Seaborne resolved JENA-211.
--------------------------------

    Resolution: Fixed
    
> DISTINCT isn't distinct in the presence of anon variables.
> ----------------------------------------------------------
>
>                 Key: JENA-211
>                 URL: https://issues.apache.org/jira/browse/JENA-211
>             Project: Jena
>          Issue Type: Bug
>          Components: ARQ
>    Affects Versions: ARQ 2.9.0
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>         Attachments: jena-211-distinct.patch
>
>
> The DISTINCT (and REDUCED) iterators don't mask hidden variables (bnodes and rewrite-introducded hdden variables)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (JENA-211) DISTINCT isn't distinct in the presence of anon variables.

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JENA-211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13209756#comment-13209756 ] 

Hudson commented on JENA-211:
-----------------------------

Integrated in Jena_ARQ #462 (See [https://builds.apache.org/job/Jena_ARQ/462/])
    JENA-211 : DISTINCT * does not see hidden variables. (Revision 1245179)

     Result = SUCCESS
andy : 
Files : 
* /incubator/jena/Jena2/ARQ/trunk/src/main/java/com/hp/hpl/jena/sparql/core/Var.java
* /incubator/jena/Jena2/ARQ/trunk/src/main/java/com/hp/hpl/jena/sparql/engine/iterator/QueryIterDistinct.java
* /incubator/jena/Jena2/ARQ/trunk/src/main/java/com/hp/hpl/jena/sparql/engine/iterator/QueryIterDistinctMem.java
* /incubator/jena/Jena2/ARQ/trunk/src/main/java/com/hp/hpl/jena/sparql/engine/iterator/QueryIterDistinctReduced.java
* /incubator/jena/Jena2/ARQ/trunk/src/main/java/com/hp/hpl/jena/sparql/engine/iterator/QueryIterReduced.java
* /incubator/jena/Jena2/ARQ/trunk/testing/ARQ/Distinct/data-multipath.ttl
* /incubator/jena/Jena2/ARQ/trunk/testing/ARQ/Distinct/distinct-multi-1.rq
* /incubator/jena/Jena2/ARQ/trunk/testing/ARQ/Distinct/distinct-multi-1.srj
* /incubator/jena/Jena2/ARQ/trunk/testing/ARQ/Distinct/distinct-multi-2.rq
* /incubator/jena/Jena2/ARQ/trunk/testing/ARQ/Distinct/distinct-multi-2.srj
* /incubator/jena/Jena2/ARQ/trunk/testing/ARQ/Distinct/distinct-multi-3.rq
* /incubator/jena/Jena2/ARQ/trunk/testing/ARQ/Distinct/distinct-multi-3.srj
* /incubator/jena/Jena2/ARQ/trunk/testing/ARQ/Distinct/manifest.ttl
* /incubator/jena/Jena2/ARQ/trunk/testing/ARQ/Distinct/no-distinct-multi-1.rq
* /incubator/jena/Jena2/ARQ/trunk/testing/ARQ/Distinct/no-distinct-multi-1.srj
* /incubator/jena/Jena2/ARQ/trunk/testing/ARQ/Distinct/no-distinct-multi-2.rq
* /incubator/jena/Jena2/ARQ/trunk/testing/ARQ/Distinct/no-distinct-multi-2.srj
* /incubator/jena/Jena2/ARQ/trunk/testing/ARQ/Distinct/no-distinct-multi-3.rq
* /incubator/jena/Jena2/ARQ/trunk/testing/ARQ/Distinct/no-distinct-multi-3.srj
* /incubator/jena/Jena2/ARQ/trunk/testing/ARQ/Distinct/reduced-multi-1.rq
* /incubator/jena/Jena2/ARQ/trunk/testing/ARQ/Distinct/reduced-multi-1.srj
* /incubator/jena/Jena2/ARQ/trunk/testing/ARQ/Distinct/reduced-multi-2.rq
* /incubator/jena/Jena2/ARQ/trunk/testing/ARQ/Distinct/reduced-multi-2.srj
* /incubator/jena/Jena2/ARQ/trunk/testing/ARQ/Distinct/reduced-multi-3.rq
* /incubator/jena/Jena2/ARQ/trunk/testing/ARQ/Distinct/reduced-multi-3.srj

                
> DISTINCT isn't distinct in the presence of anon variables.
> ----------------------------------------------------------
>
>                 Key: JENA-211
>                 URL: https://issues.apache.org/jira/browse/JENA-211
>             Project: Jena
>          Issue Type: Bug
>          Components: ARQ
>    Affects Versions: ARQ 2.9.0
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>         Attachments: jena-211-distinct.patch
>
>
> The DISTINCT (and REDUCED) iterators don't mask hidden variables (bnodes and rewrite-introducded hdden variables)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira