You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by ma...@apache.org on 2015/01/16 18:37:00 UTC
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
Repository: phoenix
Updated Branches:
refs/heads/master 3e8b685db -> ef3a7e4c4
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/ef3a7e4c
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/ef3a7e4c
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/ef3a7e4c
Branch: refs/heads/master
Commit: ef3a7e4c404424db78afb7739de87b368a240844
Parents: 3e8b685
Author: maryannxue <we...@intel.com>
Authored: Fri Jan 16 12:36:46 2015 -0500
Committer: maryannxue <we...@intel.com>
Committed: Fri Jan 16 12:36:46 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/ef3a7e4c/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 df5c72d..08a18fd 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
@@ -203,7 +203,7 @@ public class HashJoinPlan extends DelegateQueryPlan {
Expression rhsExpression, List<ImmutableBytesWritable> rhsValues,
ImmutableBytesWritable ptr, boolean hasFilters) throws SQLException {
if (rhsValues.isEmpty())
- return LiteralExpression.newConstant(null, PBoolean.INSTANCE, Determinism.ALWAYS);
+ return LiteralExpression.newConstant(false, PBoolean.INSTANCE, Determinism.ALWAYS);
PDataType type = rhsExpression.getDataType();
if (!useInClause(hasFilters)) {