You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tajo.apache.org by "Hyoungjun Kim (JIRA)" <ji...@apache.org> on 2014/06/20 08:30:27 UTC

[jira] [Created] (TAJO-883) UNION should be compatible between similar types.

Hyoungjun Kim created TAJO-883:
----------------------------------

             Summary: UNION should be compatible between similar types. 
                 Key: TAJO-883
                 URL: https://issues.apache.org/jira/browse/TAJO-883
             Project: Tajo
          Issue Type: Improvement
            Reporter: Hyoungjun Kim
            Assignee: Hyoungjun Kim
            Priority: Trivial


If each result type in a union's subquery is INT4 and INT8, a type mismatch error occurs.

{code:sql}
select 0::INT4 from lineitem union all select 1::INT8 from lineitem
{code}

{noformat}
org.apache.tajo.engine.exception.VerifyException: UNION types INT4 and INT8 cannot be matched

	at org.apache.tajo.master.GlobalEngine.createLogicalPlan(GlobalEngine.java:498)
	at org.apache.tajo.master.GlobalEngine.executeQuery(GlobalEngine.java:148)
	at org.apache.tajo.master.TajoMasterClientService$TajoMasterClientProtocolServiceHandler.submitQuery(TajoMasterClientService.java:261)
{noformat}



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