You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Adam Szita (JIRA)" <ji...@apache.org> on 2019/08/12 09:22:00 UTC
[jira] [Created] (HIVE-22099) GenericUDFDateFormat can't handle
Julian dates properly
Adam Szita created HIVE-22099:
---------------------------------
Summary: GenericUDFDateFormat can't handle Julian dates properly
Key: HIVE-22099
URL: https://issues.apache.org/jira/browse/HIVE-22099
Project: Hive
Issue Type: Bug
Reporter: Adam Szita
Assignee: Adam Szita
Currently dates that belong to Julian calendar (before Oct 15, 1582) are handled improperly by DateFormat UDF:
Although the dates are in Julian calendar, the formatter insists to print these according to Gregorian calendar causing multiple days of difference in some cases:
{code:java}
beeline> select date_format('1001-01-05','dd---MM--yyyy');
+----------------+
| _c0 |
+----------------+
| 30---12--1000 |
+----------------+{code}
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)