hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Lavati (Jira)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-22589) Add storage support for ProlepticCalendar
Date Mon, 09 Dec 2019 09:39:00 GMT

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

David Lavati updated HIVE-22589:
--------------------------------
    Attachment: HIVE-22589.patch

> Add storage support for ProlepticCalendar
> -----------------------------------------
>
>                 Key: HIVE-22589
>                 URL: https://issues.apache.org/jira/browse/HIVE-22589
>             Project: Hive
>          Issue Type: Bug
>          Components: Avro, ORC, Parquet
>            Reporter: Jesus Camacho Rodriguez
>            Assignee: David Lavati
>            Priority: Major
>             Fix For: 4.0.0, 3.2.0, 3.1.3
>
>         Attachments: HIVE-22589.patch, HIVE-22589.patch
>
>
> Hive recently moved its processing to the proleptic calendar, which has created some
issues for users who have dates before 1580 AD.
> I'd propose extending the column vectors for times & dates to encode which calendar
they are using.
> * create DateColumnVector that extends LongColumnVector
> * add a method to change calendars to both DateColumnVector and TimestampColumnVector.
> {code}
>   /**
>    * Change the calendar to or from proleptic. If the new and old values of the flag
are the
>    * same, nothing is done.
>    * useProleptic - set the flag for the proleptic calendar
>    * updateData - change the data to match the new value of the flag.
>    */
>   void changeCalendar(useProleptic: boolean, updateData: boolean);
>   /**
>    * Detect whether this data is using the proleptic calendar.
>    */
>   boolean usingProlepticCalendar();
> {code}



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

Mime
View raw message