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

Rob Vesse edited comment on JENA-500 at 8/5/13 5:07 PM:
--------------------------------------------------------

Couple more examples that highlight the issue:

{noformat}
ASK WHERE { FILTER (?x = <http://constant>) }
{noformat}

Also a more useful example that TQ uses:

{noformat}
SELECT *
WHERE
{
  BIND(ex:function(?x) AS ?y)
  FILTER ( ?prebound = ?y )
}
{noformat}
                
      was (Author: rvesse):
    Couple more examples that highlight the issue:

ASK WHERE { FILTER (?x = <http://constant>) }

Also a more useful example that TQ uses:

SELECT *
WHERE
{
  BIND(ex:function(?x) AS ?y)
  FILTER ( ?prebound = ?y )
}
                  
> SPARQL optimizer does not consider pre-bound variables, creates wrong query
> ---------------------------------------------------------------------------
>
>                 Key: JENA-500
>                 URL: https://issues.apache.org/jira/browse/JENA-500
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: Optimizer
>    Affects Versions: Jena 2.10.2
>            Reporter: Holger Knublauch
>         Attachments: TestPreboundFilter.java
>
>
> There is a regression bug somewhere between 2.7.2 and 2.10.2.
> See test case which works green in the old version but fails on the
> latest snapshot. I believe the cause is that
> TransformFilterImplicitJoin.testSpecialCaseUnused() incorrectly assumes
> it can ignore the whole query if it encounters unbound variables.
> However, in my case the variables do have values, coming from the
> initial binding of the QueryExecution. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to