You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2015/09/08 19:10:47 UTC

[15/20] jena git commit: Null joinKey if unset.

Null joinKey if unset.


Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/8a25b21c
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/8a25b21c
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/8a25b21c

Branch: refs/heads/master
Commit: 8a25b21cd4e24f3b1f3649fc3d66e3616270725a
Parents: 2318191
Author: Andy Seaborne <an...@apache.org>
Authored: Tue Sep 8 17:42:12 2015 +0100
Committer: Andy Seaborne <an...@apache.org>
Committed: Tue Sep 8 18:09:17 2015 +0100

----------------------------------------------------------------------
 .../org/apache/jena/sparql/engine/join/AbstractTestJoin.java   | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/8a25b21c/jena-arq/src/test/java/org/apache/jena/sparql/engine/join/AbstractTestJoin.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/test/java/org/apache/jena/sparql/engine/join/AbstractTestJoin.java b/jena-arq/src/test/java/org/apache/jena/sparql/engine/join/AbstractTestJoin.java
index 2ed9647..434af09 100644
--- a/jena-arq/src/test/java/org/apache/jena/sparql/engine/join/AbstractTestJoin.java
+++ b/jena-arq/src/test/java/org/apache/jena/sparql/engine/join/AbstractTestJoin.java
@@ -235,8 +235,10 @@ public abstract class AbstractTestJoin extends Assert {
             joinKey = JoinKey.create(Var.alloc(var)) ;
         }
         else {
-            // No vars in join key.  Legal, albeit silly.
-            joinKey = new JoinKey.Builder().build() ;
+            // No vars in join key.  Allow implementation to decide
+            // if needed.  Join keys are only needed for hash join
+            // (and related algorithms).
+            joinKey = null ;
         }
 
         executeTest(joinKey, left, right, null, tableOut) ;