[ https://issues.apache.org/jira/browse/FLINK-20457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17255796#comment-17255796 ]
zhengyu.lou commented on FLINK-20457: ------------------------------------- For example, currently {color:#4c9aff}datetime.datetime (2013, 12, 5, 0, 3, 13, 122000, tzinfo = timezone('Asia/Chongqing'){color}) will be converted to {color:#4c9aff}1386172633122000{color} and sent to the java side. My task is use Pickle package the {color:#4c9aff}datetime{color} {color:#4c9aff}object{color} and sent to the java side, finally used to construct a {color:#4c9aff}java.sql.Timestamp{color} object. Is my understanding correct?[~dian.fu] > Fix the handling of timestamp in DataStream.from_collection > ----------------------------------------------------------- > > Key: FLINK-20457 > URL: https://issues.apache.org/jira/browse/FLINK-20457 > Project: Flink > Issue Type: Bug > Components: API / Python > Affects Versions: 1.12.0 > Reporter: Dian Fu > Assignee: zhengyu.lou > Priority: Major > Fix For: 1.13.0, 1.12.1 > > > Currently, DataStream.from_collection firstly converts date/time/dateTime > objects to int at Python side and then construct the corresponding > Date/Time/Timestamp object at Java side. It will lose the timezone > information. Pickle could handle date/time/datetime properly and the > conversion could be avoided. -- This message was sent by Atlassian Jira (v8.3.4#803005)