You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@carbondata.apache.org by Zhangshunyu <gi...@git.apache.org> on 2016/08/16 03:58:33 UTC

[GitHub] incubator-carbondata pull request #75: [CARBONDATA-157]query exception when ...

Github user Zhangshunyu commented on a diff in the pull request:

    https://github.com/apache/incubator-carbondata/pull/75#discussion_r74873068
  
    --- 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 --
    
    Style


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---