You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Anurag Shekhar (Jira)" <ji...@apache.org> on 2021/08/20 07:00:00 UTC

[jira] [Created] (HIVE-25470) Hive returns wrong value for select query involving time conversion

Anurag Shekhar created HIVE-25470:
-------------------------------------

             Summary: Hive returns wrong value for select query involving time conversion
                 Key: HIVE-25470
                 URL: https://issues.apache.org/jira/browse/HIVE-25470
             Project: Hive
          Issue Type: Bug
          Components: UDF
            Reporter: Anurag Shekhar
            Assignee: Anurag Shekhar


Select to_date(CAST(FROM_UNIXTIME(UNIX_TIMESTAMP(date_add('0021-02-01',cast(20 as int)),'yyyy-MM-dd')) as timestamp));

-------------

_c0
-------------

0021-02-23
-------------



--
This message was sent by Atlassian Jira
(v8.3.4#803005)