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

ASF subversion and git services commented on JENA-1198:
-------------------------------------------------------

Commit e16531f87bc38f3127a6afac683d6f5511fb847b in jena's branch 
refs/heads/master from [~andy.seaborne]
[ https://git-wip-us.apache.org/repos/asf?p=jena.git;h=e16531f ]

JENA-1198: Handling placement through property functions.


> Filter placement together with a property function can cause NPE.
> -----------------------------------------------------------------
>
>                 Key: JENA-1198
>                 URL: https://issues.apache.org/jira/browse/JENA-1198
>             Project: Apache Jena
>          Issue Type: Improvement
>          Components: TDB
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>
> TDB sets filter placement within BGPs to false (it does it itself).
> {{placePropertyFunctionProcedure}} does not handle the "no change" case 
> properly. This arises when 
> {{placeOrWrapBGP}} => {{wrapBGP}} which happens in the TDB case but not 
> memory graphs.{{placeBGP}} happens to always rebuild, {{wrapBGP}} does not.
> {noformat}
> SELECT ?s
> WHERE {
>     ?s ?p ?o .
>     ?s <http://www.w3.org/2000/01/rdf-schema#member> ?m .
>     FILTER (!bound(?test))
> } 
> {noformat}
> causes:
> {noformat}
> org.apache.jena.sparql.algebra.optimize.TransformFilterPlacement.placePropertyFunctionProcedure(TransformFilterPlacement.java:453)
>     at 
> org.apache.jena.sparql.algebra.optimize.TransformFilterPlacement.placePropertyFunction(TransformFilterPlacement.java:432)
>     at 
> org.apache.jena.sparql.algebra.optimize.TransformFilterPlacement.transform(TransformFilterPlacement.java:200)
>     at 
> org.apache.jena.sparql.algebra.optimize.TransformFilterPlacement.transform(TransformFilterPlacement.java:159)
>     at 
> org.apache.jena.sparql.algebra.TransformWrapper.transform(TransformWrapper.java:59)
>  
> ...
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to