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-16262) Inconsistent result when casting integer to timestamp
Date Thu, 26 Oct 2017 23:08:00 GMT

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

Jesus Camacho Rodriguez updated HIVE-16262:
-------------------------------------------
    Labels: timestamp  (was: )

> Inconsistent result when casting integer to timestamp
> -----------------------------------------------------
>
>                 Key: HIVE-16262
>                 URL: https://issues.apache.org/jira/browse/HIVE-16262
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Pengcheng Xiong
>            Assignee: Pengcheng Xiong
>              Labels: timestamp
>
> As reported by [~jcamachorodriguez]:
> {code}
> To give a concrete example, consider the following query:
> select cast(0 as timestamp) from src limit 1;
> The result if Hive is running in Santa Clara is:
> 1969-12-31 16:00:00
> While the result if Hive is running in London is:
> 1970-01-01 00:00:00
> This is not the behavior defined by the standard for TIMESTAMP type. The result should
be consistent, in this case the correct result is:
> 1970-01-01 00:00:00
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message