You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/03/22 15:42:00 UTC
[jira] [Updated] (ARROW-2342) [Python] Aware timestamp type fails
pickling
[ https://issues.apache.org/jira/browse/ARROW-2342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated ARROW-2342:
----------------------------------
Labels: pull-request-available (was: )
> [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
> Priority: Major
> Labels: pull-request-available
>
> {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)