Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-1397

ClassCastException in FilterReduceExpressionsRule

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.9.0
    • 1.10.0
    • core
    • None

    Description

      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.

      Attachments

        Activity

          People

            jcamacho Jesús Camacho Rodríguez
            jcamacho Jesús Camacho Rodríguez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: