calcite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesus Camacho Rodriguez (JIRA)" <>
Subject [jira] [Created] (CALCITE-1397) ClassCastException in FilterReduceExpressionsRule
Date Wed, 28 Sep 2016 14:50:21 GMT
Jesus Camacho Rodriguez created CALCITE-1397:

             Summary: ClassCastException in FilterReduceExpressionsRule
                 Key: CALCITE-1397
             Project: Calcite
          Issue Type: Bug
          Components: core
    Affects Versions: 1.9.0
            Reporter: Jesus Camacho Rodriguez
            Assignee: Jesus Camacho Rodriguez

L184 in ReduceExpressionsRule.

        if (newConditionExp instanceof RexCall) {
          RexCall rexCall = (RexCall) newConditionExp;
          boolean reverse = rexCall.getKind() == SqlKind.NOT;
          if (reverse) {
            rexCall = (RexCall) rexCall.getOperands().get(0);
          reduceNotNullableFilter(call, filter, rexCall, reverse);

When we take the _NOT_ input, we do not consider that it might not be a RexCall, which may
lead to the ClassCastException.

This message was sent by Atlassian JIRA

View raw message