You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kudu.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/02/10 19:09:00 UTC

[jira] [Commented] (KUDU-2632) Add DATE data type

    [ https://issues.apache.org/jira/browse/KUDU-2632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17033862#comment-17033862 ] 

ASF subversion and git services commented on KUDU-2632:
-------------------------------------------------------

Commit 62f6a300a5c092a6c61c91fe1546014eb8787b6e in kudu's branch refs/heads/master from Volodymyr Verovkin
[ https://gitbox.apache.org/repos/asf?p=kudu.git;h=62f6a30 ]

[KUDU-2632] Add a DATE type backed by INT32 (Part 2, Java client)

This adds a new DATE type, represented by an INT32 and that should
store the number of days from the Unix epoch, January 1, 1970.

Range:
from
LocalDate.parse("0001-01-01").toEpochDay()
to
LocalDate.parse("9999-12-31").toEpochDay()

Range validation is done in DateUtil::checkDateWithinRange() function.

Change-Id: I9a09f4f9c804c1b2965e78da78528225a9c769e2
Reviewed-on: http://gerrit.cloudera.org:8080/14517
Tested-by: Kudu Jenkins
Reviewed-by: Grant Henke <gr...@apache.org>
Tested-by: Alexey Serbin <as...@cloudera.com>


> Add DATE data type
> ------------------
>
>                 Key: KUDU-2632
>                 URL: https://issues.apache.org/jira/browse/KUDU-2632
>             Project: Kudu
>          Issue Type: New Feature
>          Components: tablet
>    Affects Versions: 1.8.0
>            Reporter: Adar Dembo
>            Assignee: Vladimir Verjovkin
>            Priority: Major
>              Labels: roadmap-candidate
>         Attachments: Screenshot 2019-10-14 11.18.12.png
>
>
> {{DATE}} is a timezone-agnostic measure of the current date (without time of day) in YYYY-MM-DD form. The range of values typically supported is 0000-­01-­01 to 9999-­12-­31. [Parquet has implemented|https://github.com/apache/parquet-format/blob/master/LogicalTypes.md#date] {{DATE}} as a logical type mapped to int32, represented as the number of days since the start of the UNIX epoch (i.e. January 1, 1970).
> Support for {{DATE}} is currently being added to Impala; we should also add support for it to Kudu.
>  



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