[ 
https://issues.apache.org/jira/browse/JENA-577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andy Seaborne closed JENA-577.
------------------------------


> TDB detects attempt to reassign a variable.
> -------------------------------------------
>
>                 Key: JENA-577
>                 URL: https://issues.apache.org/jira/browse/JENA-577
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: ARQ, TDB
>    Affects Versions: Jena 2.11.0
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>             Fix For: Jena 2.11.1
>
>         Attachments: DevMain.java
>
>
> With TDB, but not with a general in-memory dataset, a query of the form:
> {noformat}
> PREFIX  :     <http://example/>
> SELECT  *
> WHERE
>   { ?x :p 123
>     { SELECT  ?x
>       WHERE
>         { ?x :p ?o }
>     }
>   }
> {noformat}
> (key feature: projection from the subsquery)
> causes
> {noformat}
> 20:24:32 ERROR QueryIteratorCloseable    :: QueryFatalException
> com.hp.hpl.jena.sparql.ARQInternalErrorException: Attempt to reassign '?x' 
> from '<http://example/x>' to '<http://example/x>'
>       at 
> com.hp.hpl.jena.sparql.engine.binding.BindingHashMap.checkAdd(BindingHashMap.java:111)
>       at 
> com.hp.hpl.jena.sparql.engine.binding.BindingHashMap.add(BindingHashMap.java:92)
>       at 
> com.hp.hpl.jena.sparql.engine.binding.BindingFactory.materialize(BindingFactory.java:60)
>       at 
> com.hp.hpl.jena.tdb.solver.QueryEngineTDB$QueryIteratorMaterializeBinding.moveToNextBinding(QueryEngineTDB.java:132)
>       at 
> com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.nextBinding(QueryIteratorBase.java:154)
> {noformat}
> Looking at the optimized algebra, TDB is correct.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to