[jira] [Commented] (JENA-470) Optimizer misses optimization when there are multiple filter possibilities.

2013-06-13 Thread Hudson (JIRA)

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

Hudson commented on JENA-470:
-

Integrated in Jena__Development_Test #685 (See 
[https://builds.apache.org/job/Jena__Development_Test/685/])
JENA-470 : Process mixture of disjunctions and other filter expressions. 
(Revision 1492649)

 Result = UNSTABLE
andy : 
Files : 
* 
/jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/algebra/optimize/TransformFilterDisjunction.java
* 
/jena/trunk/jena-arq/src/test/java/com/hp/hpl/jena/sparql/algebra/optimize/TestTransformFilters.java


> 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 : ",
>   "SELECT * {",
>   "  ?s  ?o . ?s  ?v . ",
>   "  FILTER (?o =  || ?o =  
> )",
>   //"  FILTER (?o =  )",
>   "  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


[jira] [Resolved] (JENA-470) Optimizer misses optimization when there are multiple filter possibilities.

2013-06-13 Thread Andy Seaborne (JIRA)

 [ 
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 : ",
>   "SELECT * {",
>   "  ?s  ?o . ?s  ?v . ",
>   "  FILTER (?o =  || ?o =  
> )",
>   //"  FILTER (?o =  )",
>   "  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


[jira] [Closed] (JENA-470) Optimizer misses optimization when there are multiple filter possibilities.

2013-06-13 Thread Andy Seaborne (JIRA)

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

Andy Seaborne closed JENA-470.
--


> 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 : ",
>   "SELECT * {",
>   "  ?s  ?o . ?s  ?v . ",
>   "  FILTER (?o =  || ?o =  
> )",
>   //"  FILTER (?o =  )",
>   "  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


[jira] [Commented] (JENA-470) Optimizer misses optimization when there are multiple filter possibilities.

2013-06-13 Thread Andy Seaborne (JIRA)

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

Andy Seaborne commented on JENA-470:


The code was correctly finding the better algebra but failing to determine it 
could return the mixed expression.

> 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
>
> {noformat}
> public static void main(String[] args) {
> 
> String qs= StrUtils.strjoinNL("PREFIX : ",
>   "SELECT * {",
>   "  ?s  ?o . ?s  ?v . ",
>   "  FILTER (?o =  || ?o =  
> )",
>   //"  FILTER (?o =  )",
>   "  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


[jira] [Commented] (JENA-470) Optimizer misses optimization when there are multiple filter possibilities.

2013-06-13 Thread ASF subversion and git services (JIRA)

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

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

Commit 1492649 from [~andy.seaborne]
[ https://svn.apache.org/r1492649 ]

JENA-470 : Process mixture of disjunctions and other filter expressions.

> 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
>
> {noformat}
> public static void main(String[] args) {
> 
> String qs= StrUtils.strjoinNL("PREFIX : ",
>   "SELECT * {",
>   "  ?s  ?o . ?s  ?v . ",
>   "  FILTER (?o =  || ?o =  
> )",
>   //"  FILTER (?o =  )",
>   "  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


[jira] [Updated] (JENA-470) Optimizer misses optimization when there are multiple filter possibilities.

2013-06-13 Thread Andy Seaborne (JIRA)

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

Andy Seaborne updated JENA-470:
---

Description: 
{noformat}
public static void main(String[] args) {

String qs= StrUtils.strjoinNL("PREFIX : ",
  "SELECT * {",
  "  ?s  ?o . ?s  ?v . ",
  "  FILTER (?o =  || ?o =  )",
  //"  FILTER (?o =  )",
  "  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.


> 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
>
> {noformat}
> public static void main(String[] args) {
> 
> String qs= StrUtils.strjoinNL("PREFIX : ",
>   "SELECT * {",
>   "  ?s  ?o . ?s  ?v . ",
>   "  FILTER (?o =  || ?o =  
> )",
>   //"  FILTER (?o =  )",
>   "  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


[jira] [Created] (JENA-470) Optimizer misses optimization when there are multiple filter possibilities.

2013-06-13 Thread Andy Seaborne (JIRA)
Andy Seaborne created JENA-470:
--

 Summary: 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




--
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