flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-2961) Add support for basic type Date in Table API
Date Tue, 03 Nov 2015 15:51:27 GMT

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

ASF GitHub Bot commented on FLINK-2961:
---------------------------------------

Github user twalthr commented on the pull request:

    https://github.com/apache/flink/pull/1322#issuecomment-153395500
  
    I also also thought about that but I'm pretty sure that this introduces issues difficult
to debug. I think the most important thing is that the conversion (from string to date and
back) is always constant. Internally date is always UTC anyway. Introducing a `.convert()`
function for that might be better. My goal was primarily to have this data type in the Table
API.


> Add support for basic type Date in Table API
> --------------------------------------------
>
>                 Key: FLINK-2961
>                 URL: https://issues.apache.org/jira/browse/FLINK-2961
>             Project: Flink
>          Issue Type: Improvement
>          Components: Table API
>            Reporter: Timo Walther
>            Assignee: Timo Walther
>            Priority: Minor
>
> Currently, the basic type {{Date}} is not implemented in the Table API. In order to have
a mapping of the most important ANSI SQL types for FLINK-2099. It makes sense to add support
for {{Date}} to represent date, time and timestamps of milliseconds precision.
> Only the types `LONG` and `STRING` can be casted to `DATE` and vice versa. A `LONG` casted
to `DATE` must be a milliseconds timestamp. A `STRING` casted to `DATE` must have the format
"`yyyy-MM-dd HH:mm:ss.SSS`", "`yyyy-MM-dd`", "`HH:mm:ss`", or a milliseconds timestamp. All
timestamps refer to the UTC timezone beginning from January 1, 1970, 00:00:00 in milliseconds.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message