You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Antoine Pitrou (JIRA)" <ji...@apache.org> on 2018/03/22 15:07:00 UTC
[jira] [Created] (ARROW-2342) [Python] Aware timestamp type fails
pickling
Antoine Pitrou created ARROW-2342:
-------------------------------------
Summary: [Python] Aware timestamp type fails pickling
Key: ARROW-2342
URL: https://issues.apache.org/jira/browse/ARROW-2342
Project: Apache Arrow
Issue Type: Bug
Components: Python
Affects Versions: 0.9.0
Reporter: Antoine Pitrou
{code:python}
>>> ty = pa.timestamp('ms')
>>> pickle.loads(pickle.dumps(ty))
TimestampType(timestamp[ms])
>>> ty = pa.timestamp('ms', tz='UTC')
>>> pickle.loads(pickle.dumps(ty))
Traceback (most recent call last):
File "<ipython-input-15-889e5adab733>", line 1, in <module>
pickle.loads(pickle.dumps(ty))
File "types.pxi", line 82, in pyarrow.lib.DataType.__setstate__
File "types.pxi", line 1246, in pyarrow.lib.type_for_alias
ValueError: No type alias for timestamp[ms, tz=utc]
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)