jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1375638 - /jena/trunk/jena-arq/src/test/java/com/hp/hpl/jena/sparql/algebra/optimize/TestFilterTransform.java
Date Tue, 21 Aug 2012 16:09:19 GMT
Author: andy
Date: Tue Aug 21 16:09:19 2012
New Revision: 1375638

URL: http://svn.apache.org/viewvc?rev=1375638&view=rev
Log:
Revert to BIND translation as of earlier last call SPARQL Query (WG decision).

Added:
    jena/trunk/jena-arq/src/test/java/com/hp/hpl/jena/sparql/algebra/optimize/TestFilterTransform.java
      - copied, changed from r1375022, jena/trunk/jena-arq/src/test/java/com/hp/hpl/jena/sparql/algebra/TestFilterTransform.java

Copied: jena/trunk/jena-arq/src/test/java/com/hp/hpl/jena/sparql/algebra/optimize/TestFilterTransform.java
(from r1375022, jena/trunk/jena-arq/src/test/java/com/hp/hpl/jena/sparql/algebra/TestFilterTransform.java)
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/test/java/com/hp/hpl/jena/sparql/algebra/optimize/TestFilterTransform.java?p2=jena/trunk/jena-arq/src/test/java/com/hp/hpl/jena/sparql/algebra/optimize/TestFilterTransform.java&p1=jena/trunk/jena-arq/src/test/java/com/hp/hpl/jena/sparql/algebra/TestFilterTransform.java&r1=1375022&r2=1375638&rev=1375638&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/test/java/com/hp/hpl/jena/sparql/algebra/TestFilterTransform.java
(original)
+++ jena/trunk/jena-arq/src/test/java/com/hp/hpl/jena/sparql/algebra/optimize/TestFilterTransform.java
Tue Aug 21 16:09:19 2012
@@ -16,13 +16,16 @@
  * limitations under the License.
  */
 
-package com.hp.hpl.jena.sparql.algebra;
+package com.hp.hpl.jena.sparql.algebra.optimize;
 
 import junit.framework.Assert ;
 import junit.framework.JUnit4TestAdapter ;
 import org.junit.Test ;
 import org.openjena.atlas.lib.StrUtils ;
 
+import com.hp.hpl.jena.sparql.algebra.Op ;
+import com.hp.hpl.jena.sparql.algebra.Transform ;
+import com.hp.hpl.jena.sparql.algebra.Transformer ;
 import com.hp.hpl.jena.sparql.algebra.op.OpBGP ;
 import com.hp.hpl.jena.sparql.algebra.op.OpFilter ;
 import com.hp.hpl.jena.sparql.algebra.optimize.TransformExpandOneOf ;
@@ -147,6 +150,21 @@ public class TestFilterTransform
              "(assign((?x1 <x>))  (union (bgp ( ?s ?p <x>))  (bgp ( ?s ?p <x>))))")
;
     }
 
+    @Test public void equality15()
+    {
+        // assign-push-in optimization.
+        test("(filter (= ?x1 <x>) (leftjoin (leftjoin (table unit) (bgp ( ?s ?p ?x1))
) (bgp ( ?s ?p ?x1)) ))", 
+             t_equality,
+             "(filter (= ?x1 <x>)", 
+             "   (leftjoin",
+             "     (leftjoin",
+             "       (table unit)", 
+             "       (assign ((?x1 <x>)) (bgp (triple ?s ?p <x>)))",
+             "     )",
+             "     (assign ((?x1 <x>)) (bgp (triple ?s ?p <x>)))",
+             "   ))" ) ;
+    }
+
     @Test public void disjunction01()
     {
         test("(filter (|| (= ?x <x>) (= ?x <y>)) (bgp ( ?s ?p ?x)) )",



Mime
View raw message