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 (JIRA)" <ji...@apache.org> on 2013/06/13 15:01:21 UTC
[jira] [Resolved] (JENA-470) Optimizer misses optimization when
there are multiple filter possibilities.
[ https://issues.apache.org/jira/browse/JENA-470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy Seaborne resolved JENA-470.
--------------------------------
Resolution: Fixed
Assignee: Andy Seaborne
> Optimizer misses optimization when there are multiple filter possibilities.
> ---------------------------------------------------------------------------
>
> Key: JENA-470
> URL: https://issues.apache.org/jira/browse/JENA-470
> Project: Apache Jena
> Issue Type: Bug
> Components: ARQ
> Affects Versions: Jena 2.10.1
> Reporter: Andy Seaborne
> Assignee: Andy Seaborne
>
> {noformat}
> public static void main(String[] args) {
>
> String qs= StrUtils.strjoinNL("PREFIX : <http://example/>",
> "SELECT * {",
> " ?s <p> ?o . ?s <q> ?v . ",
> " FILTER (?o = <uri1> || ?o = <?uri2> )",
> //" FILTER (?o = <uri1> )",
> " FILTER (?v > 5)",
> "} ");
>
> Query query = QueryFactory.create(qs) ;
> //Query query = QueryFactory.read("Q.rq") ;
>
> System.out.println(query) ;
> Op op1 = Algebra.compile(query) ;
> Op op2 = Algebra.optimize(op1) ;
> System.out.println(op1) ;
> System.out.println(op2) ;
> }
> {noformat}
> This query does not have the disjunction/equality optimization applied.
> The simple equality FILTER case does get it applied.
> The (?v>5) is causing the block.
--
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