You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Joris Van den Bossche (Jira)" <ji...@apache.org> on 2020/09/24 08:43:00 UTC
[jira] [Updated] (ARROW-1628) [Python] Incorrect serialization of
numpy datetimes.
[ https://issues.apache.org/jira/browse/ARROW-1628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joris Van den Bossche updated ARROW-1628:
-----------------------------------------
Labels: pyarrow-serialization (was: )
> [Python] Incorrect serialization of numpy datetimes.
> ----------------------------------------------------
>
> Key: ARROW-1628
> URL: https://issues.apache.org/jira/browse/ARROW-1628
> Project: Apache Arrow
> Issue Type: Bug
> Components: Python
> Reporter: Robert Nishihara
> Priority: Major
> Labels: pyarrow-serialization
>
> See https://github.com/ray-project/ray/issues/1041.
> The issue can be reproduced as follows.
> {code}
> import pyarrow as pa
> import numpy as np
> t = np.datetime64(datetime.datetime.now())
> print(type(t), t) # <class 'numpy.datetime64'> 2017-09-30T09:50:46.089952
> t_new = pa.deserialize(pa.serialize(t).to_buffer())
> print(type(t_new), t_new) # <class 'int'> 0
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)