stoty commented on a change in pull request #1070:
URL: https://github.com/apache/phoenix/pull/1070#discussion_r552631933
##########
File path:
phoenix-core/src/main/java/org/apache/phoenix/compile/ExpressionCompiler.java
##########
@@ -1217,8 +1217,10 @@ public boolean visitEnter(ExistsParseNode node) throws
SQLException {
@Override
public Expression visitLeave(ExistsParseNode node, List<Expression> l)
throws SQLException {
LiteralExpression child = (LiteralExpression) l.get(0);
- PhoenixArray array = (PhoenixArray) child.getValue();
- return LiteralExpression.newConstant(array.getDimensions() > 0 ^
node.isNegate(), PBoolean.INSTANCE);
+ boolean exists = child != null
Review comment:
The original author used exists, but elementExists is just as good.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]