hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesus Camacho Rodriguez (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-15552) Unable to coalesce DATE and TIMESTAMP types
Date Fri, 03 Nov 2017 18:37:00 GMT

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

Jesus Camacho Rodriguez updated HIVE-15552:
-------------------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.0
           Status: Resolved  (was: Patch Available)

Pushed to master, thanks for reviewing [~ashutoshc]!

> 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
>            Assignee: Jesus Camacho Rodriguez
>            Priority: Critical
>              Labels: timestamp
>             Fix For: 3.0.0
>
>         Attachments: HIVE-15552.01.patch, HIVE-15552.02.patch, HIVE-15552.03.patch, HIVE-15552.patch
>
>
> 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.4.14#64029)

Mime
View raw message