You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "N Campbell (JIRA)" <ji...@apache.org> on 2017/01/06 13:55:58 UTC

[jira] [Created] (HIVE-15552) unable to coalesce DATE and TIMESTAMP types

N Campbell created HIVE-15552:
---------------------------------

             Summary: unable to coalesce DATE and TIMESTAMP types
                 Key: HIVE-15552
                 URL: https://issues.apache.org/jira/browse/HIVE-15552
             Project: Hive
          Issue Type: Bug
          Components: SQL
    Affects Versions: 2.1.0
            Reporter: N Campbell
            Priority: Minor


COALESCE expression does not expect DATE and TIMESTAMP types 


select tdt.rnum, coalesce(tdt.cdt, cast(tdt.cdt as timestamp)) from certtext.tdt
Error: Error while compiling statement: FAILED: SemanticException Line 0:-1 Argument type mismatch 'cdt': The expressions after COALESCE should all have the same type: "date" is expected but "timestamp" is found
SQLState:  42000
ErrorCode: 40000



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)