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 2019/12/17 22:52: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=16998649#comment-16998649 ] 

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

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

[KUDU-2632] Add a DATE type backed by INT32 (Part 1, C++ 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:
0001-01-01 to 9999-12-31
or
-719162 to 2932896 (days; computed with mktime()/(24*60*60),
timezone = GMT, daylight saving = 0)
Range validation is done in KuduPartialRow::SetDate() function.

Change-Id: I1d803b6eb573a0b36c99c5a2012f12319a548986
Reviewed-on: http://gerrit.cloudera.org:8080/14427
Tested-by: Kudu Jenkins
Reviewed-by: Adar Dembo <ad...@cloudera.com>
Reviewed-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)