From issues-return-165161-archive-asf-public=cust-asf.ponee.io@hive.apache.org Thu Aug 15 16:58:02 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id ACD3B180645 for ; Thu, 15 Aug 2019 18:58:01 +0200 (CEST) Received: (qmail 25734 invoked by uid 500); 15 Aug 2019 16:58:01 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 25722 invoked by uid 99); 15 Aug 2019 16:58:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Aug 2019 16:58:01 +0000 Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 69A01E2FE8 for ; Thu, 15 Aug 2019 16:58:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 33EB02778C for ; Thu, 15 Aug 2019 16:58:00 +0000 (UTC) Date: Thu, 15 Aug 2019 16:58:00 +0000 (UTC) From: "Adam Szita (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-22099) Several date related UDFs can't handle Julian dates properly since HIVE-20007 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-22099?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Adam Szita updated HIVE-22099: ------------------------------ Status: In Progress (was: Patch Available) > Several date related UDFs can't handle Julian dates properly since HIVE-2= 0007 > -------------------------------------------------------------------------= ---- > > Key: HIVE-22099 > URL: https://issues.apache.org/jira/browse/HIVE-22099 > Project: Hive > Issue Type: Bug > Reporter: Adam Szita > Assignee: Adam Szita > Priority: Major > Attachments: HIVE-22099.0.patch, HIVE-22099.1.patch, HIVE-22099.2= .patch, HIVE-22099.3.patch > > > Currently dates that belong to Julian calendar (before Oct 15, 1582) are = handled improperly by date/timestamp UDFs. > E.g. 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: > =C2=A0 > {code:java} > beeline> select date_format('1001-01-05','dd---MM--yyyy'); > +----------------+ > | _c0 | > +----------------+ > | 30---12--1000 | > +----------------+{code} > =C2=A0I've observed similar problems in the following UDFs: > * add_months > * date_format > * day > * month > * months_between > * weekofyear > * year > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.14#76016)