hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vigith Maurice (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Deleted] (HIVE-17640) Comparison of date return null if time part is provided in string.
Date Thu, 28 Sep 2017 21:28:00 GMT

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

Vigith Maurice updated HIVE-17640:
----------------------------------
    Comment: was deleted

(was: This seems to be the issue casting of timestamp to date returns NULL.

hive (default)> select cast('2017-01-01 00:00:00' as date);
OK
NULL)

> Comparison of date return null if time part is provided in string.
> ------------------------------------------------------------------
>
>                 Key: HIVE-17640
>                 URL: https://issues.apache.org/jira/browse/HIVE-17640
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Yongzhi Chen
>            Assignee: Yongzhi Chen
>             Fix For: 2.1.0
>
>
> Reproduce:
> select '2017-01-01 00:00:00' < current_date;
> INFO  : OK
> ...
> 1 row selected (18.324 seconds)
> ...
>  NULL



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

Mime
View raw message