Hyunsik Choi created TAJO-959:
---------------------------------

             Summary: ExprAnnotator::converType may result in incorrect type 
convert against CaseWhen
                 Key: TAJO-959
                 URL: https://issues.apache.org/jira/browse/TAJO-959
             Project: Tajo
          Issue Type: Bug
            Reporter: Hyunsik Choi
            Priority: Minor


See the below code. For CaseWhen, we should consider multiple results of case 
when clauses as well as its else types. So, if we consider only 
{{evalNode.getValueType().getType()}}, it can result in incorrect type casting.

{code:title="ExprAnnotator::converType()"}
// the conversion to null is not allowed.     
if (evalNode.getValueType().getType() == Type.NULL_TYPE ||
toType.getType() == Type.NULL_TYPE) {
    return evalNode;     
}
{code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to