You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Timo Walther (JIRA)" <ji...@apache.org> on 2016/05/02 16:45:12 UTC

[jira] [Commented] (FLINK-3856) Create types for java.sql.Date/Time/Timestamp

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

Timo Walther commented on FLINK-3856:
-------------------------------------

I have created type information for all 3 types. You can find it here: https://github.com/twalthr/flink/tree/DateTimeTimestamp
Actually, it does not look very nice due to the bad Java API design. Using {{java.time}} would be better, but Java 8 is not mandatory yet. Supporting these types is propaply the most industry-friendly solution, though.
What do you think about it [~fhueske]?

> Create types for java.sql.Date/Time/Timestamp
> ---------------------------------------------
>
>                 Key: FLINK-3856
>                 URL: https://issues.apache.org/jira/browse/FLINK-3856
>             Project: Flink
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Timo Walther
>            Assignee: Timo Walther
>
> At the moment there is only the {{Date}} type which is not sufficient for most use cases about time.
> The Table API would also benefit from having different types as output result.
> I would propose to add the three {{java.sql.}} types either as {{BasicTypes}} or in an additional class {{TimeTypes}}.



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