hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergio Peña (JIRA) <j...@apache.org>
Subject [jira] [Commented] (HIVE-14231) timestamp support is limited to 4 digit year
Date Thu, 14 Jul 2016 21:08:20 GMT

    [ https://issues.apache.org/jira/browse/HIVE-14231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15378380#comment-15378380
] 

Sergio Peña commented on HIVE-14231:
------------------------------------

Thanks [~thejas] for the explanation.
I've seen some issues in Thrift regarding types as well. Maybe we can lower the priority on
this and a newbie can take it later to identify if it is possible to fix it.

> timestamp support is limited to 4 digit year
> --------------------------------------------
>
>                 Key: HIVE-14231
>                 URL: https://issues.apache.org/jira/browse/HIVE-14231
>             Project: Hive
>          Issue Type: Bug
>          Components: Types
>            Reporter: Takahiko Saito
>              Labels: newbie
>
> Hive doesn't handle timestamp type that have a year with more than 4 digits.
> This limitation seems to be primarily around string to timestamp conversion.
> {code}
> Following insert query would insert NULL record -
> create table ts_test (t timestamp);
> insert into ts_test values ('2015-01-01 1:1:1');
> insert into ts_test values ('20151-01-01 1:1:1');
> select CAST(t as String)  from ts_test;
> +----------------------+--+
> |          t           |
> +----------------------+--+
> | 2015-01-01 01:01:01  |
> | NULL                 |
> +----------------------+--+
> {code}



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

Mime
View raw message