You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Navis (JIRA)" <ji...@apache.org> on 2014/05/11 00:06:08 UTC
[jira] [Resolved] (HIVE-6693) CASE with INT and BIGINT fail
[ 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)