You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "David Gayou (JIRA)" <ji...@apache.org> on 2014/03/18 18:27:45 UTC

[jira] [Created] (HIVE-6693) CASE with INT and BIGINT fail

David Gayou created HIVE-6693:
---------------------------------

             Summary: 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)