[ 
https://issues.apache.org/jira/browse/HIVE-6693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Navis resolved HIVE-6693.
-------------------------

    Resolution: Duplicate

> CASE with INT and BIGINT fail
> -----------------------------
>
>                 Key: HIVE-6693
>                 URL: https://issues.apache.org/jira/browse/HIVE-6693
>             Project: Hive
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 0.12.0
>            Reporter: David Gayou
>
> CREATE TABLE testCase (n BIGINT)
> select case when (n >3) then n else 0 end from testCase
> fail with error : 
> [Error 10016]: Line 1:36 Argument type mismatch '0': The expression after 
> ELSE should have the same type as those after THEN: "bigint" is expected but 
> "int" is found'.
> bigint and int should be more compatible, at least int should implictly cast 
> to bigint. 



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

Reply via email to