You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tajo.apache.org by "Hyunsik Choi (JIRA)" <ji...@apache.org> on 2014/07/18 09:50:04 UTC

[jira] [Created] (TAJO-959) ExprAnnotator::converType may result in incorrect type convert against CaseWhen

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)