phoenix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maryann...@apache.org
Subject phoenix git commit: PHOENIX-1591 Return all rows instead of no rows if IN clause subquery gets optimized out from semi-join and returns empty result
Date Fri, 16 Jan 2015 17:41:29 GMT
Repository: phoenix
Updated Branches:
  refs/heads/3.0 8b4df7ba9 -> 21cf00c70


PHOENIX-1591 Return all rows instead of no rows if IN clause subquery gets optimized out from
semi-join and returns empty result


Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/21cf00c7
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/21cf00c7
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/21cf00c7

Branch: refs/heads/3.0
Commit: 21cf00c7098094743bac6ea6b55297f41a68f201
Parents: 8b4df7b
Author: maryannxue <wei.xue@intel.com>
Authored: Fri Jan 16 12:41:16 2015 -0500
Committer: maryannxue <wei.xue@intel.com>
Committed: Fri Jan 16 12:41:16 2015 -0500

----------------------------------------------------------------------
 .../src/main/java/org/apache/phoenix/execute/HashJoinPlan.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/21cf00c7/phoenix-core/src/main/java/org/apache/phoenix/execute/HashJoinPlan.java
----------------------------------------------------------------------
diff --git a/phoenix-core/src/main/java/org/apache/phoenix/execute/HashJoinPlan.java b/phoenix-core/src/main/java/org/apache/phoenix/execute/HashJoinPlan.java
index bc689ca..bb29118 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/execute/HashJoinPlan.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/execute/HashJoinPlan.java
@@ -198,7 +198,7 @@ public class HashJoinPlan extends DelegateQueryPlan {
             Expression rhsExpression, List<ImmutableBytesWritable> rhsValues, 
             ImmutableBytesWritable ptr, boolean hasFilters) throws SQLException {
         if (rhsValues.isEmpty())
-            return LiteralExpression.newConstant(null, PDataType.BOOLEAN, Determinism.ALWAYS);
+            return LiteralExpression.newConstant(false, PDataType.BOOLEAN, Determinism.ALWAYS);
         
         PDataType type = rhsExpression.getDataType();
         if (!useInClause(hasFilters)) {


Mime
View raw message