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.