Github user Jay357089 commented on a diff in the pull request:
https://github.com/apache/incubator-carbondata/pull/75#discussion_r75053060
--- Diff:
core/src/main/java/org/apache/carbondata/scan/filter/FilterExpressionProcessor.java
---
@@ -215,6 +215,20 @@ private FilterResolverIntf
createFilterResolverTree(Expression expressionTree,
AbsoluteTableIdentifier tableIdentifier, Expression
intermediateExpression) {
ExpressionType filterExpressionType =
expressionTree.getFilterExpressionType();
BinaryExpression currentExpression = null;
+ if (filterExpressionType == ExpressionType.OR || filterExpressionType
== ExpressionType.AND) {
+ Expression leftExpression = ((BinaryExpression)
expressionTree).getLeft();
+ Expression rightExpression = ((BinaryExpression)
expressionTree).getRight();
+ if (!(leftExpression instanceof BinaryExpression ||
+ leftExpression instanceof ConditionalExpression)) {
+ expressionTree = rightExpression;
+ filterExpressionType = rightExpression.getFilterExpressionType();
+ }
+ else if (!(rightExpression instanceof BinaryExpression ||
--- End diff --
handled
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---