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 2014/09/25 19:53:07 UTC
git commit: PHOENIX-1168 Support non-correlated sub-queries in where
clause having a comparison operator with no modifier or a comparison operator
modified by ANY, SOME or ALL(fix regression)
Repository: phoenix
Updated Branches:
refs/heads/master a0694b77c -> 10efdb1f2
PHOENIX-1168 Support non-correlated sub-queries in where clause having a comparison operator with no modifier or a comparison operator modified by ANY, SOME or ALL(fix regression)
Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/10efdb1f
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/10efdb1f
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/10efdb1f
Branch: refs/heads/master
Commit: 10efdb1f274d344536baef56101ab903c10de12b
Parents: a0694b7
Author: maryannxue <ma...@apache.org>
Authored: Thu Sep 25 13:52:31 2014 -0400
Committer: maryannxue <ma...@apache.org>
Committed: Thu Sep 25 13:52:31 2014 -0400
----------------------------------------------------------------------
.../java/org/apache/phoenix/compile/StatementNormalizer.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/phoenix/blob/10efdb1f/phoenix-core/src/main/java/org/apache/phoenix/compile/StatementNormalizer.java
----------------------------------------------------------------------
diff --git a/phoenix-core/src/main/java/org/apache/phoenix/compile/StatementNormalizer.java b/phoenix-core/src/main/java/org/apache/phoenix/compile/StatementNormalizer.java
index 88aa81c..698756b 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/compile/StatementNormalizer.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/compile/StatementNormalizer.java
@@ -22,6 +22,7 @@ import java.util.Collections;
import java.util.List;
import org.apache.phoenix.parse.AliasedNode;
+import org.apache.phoenix.parse.ArrayElemRefNode;
import org.apache.phoenix.parse.BetweenParseNode;
import org.apache.phoenix.parse.BindTableNode;
import org.apache.phoenix.parse.ColumnParseNode;
@@ -144,7 +145,8 @@ public class StatementNormalizer extends ParseNodeRewriter {
@Override
public ParseNode visitLeave(ComparisonParseNode node, List<ParseNode> nodes) throws SQLException {
- if (nodes.get(0).isStateless() && !nodes.get(1).isStateless()) {
+ if (nodes.get(0).isStateless() && !nodes.get(1).isStateless()
+ && !(nodes.get(1) instanceof ArrayElemRefNode)) {
List<ParseNode> normNodes = Lists.newArrayListWithExpectedSize(2);
normNodes.add(nodes.get(1));
normNodes.add(nodes.get(0));