Yuan Tian created IOTDB-210:
-------------------------------

             Summary: One else if branch will never be reached in the method 
optimize of ExpressionOptimizer
                 Key: IOTDB-210
                 URL: https://issues.apache.org/jira/browse/IOTDB-210
             Project: Apache IoTDB
          Issue Type: Bug
            Reporter: Yuan Tian


The code has been shown in the following. As we can see, the condition in the 
last else if, if 'left.getType() == ExpressionType.SERIES && right.getType() == 
ExpressionType.SERIES' is true, the condition in the previous else if which is 
'left.getType() != ExpressionType.GLOBAL_TIME&& right.getType() != 
ExpressionType.GLOBAL_TIME' must be true. Thus, the last else if code block 
will never be executed.

 
{code:java}
else if (left.getType() != ExpressionType.GLOBAL_TIME
 && right.getType() != ExpressionType.GLOBAL_TIME) {
....
} else if (left.getType() == ExpressionType.SERIES
 && right.getType() == ExpressionType.SERIES) {
 ...
}{code}
 



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to