You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Wes McKinney (JIRA)" <ji...@apache.org> on 2018/03/22 20:59:00 UTC

[jira] [Resolved] (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 ]

Wes McKinney resolved ARROW-2342.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 0.10.0

Issue resolved by pull request 1780
[https://github.com/apache/arrow/pull/1780]

> [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
>            Assignee: Antoine Pitrou
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.10.0
>
>
> {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)