[ 
https://issues.apache.org/jira/browse/ARROW-2342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17659369#comment-17659369
 ] 

Rok Mihevc commented on ARROW-2342:
-----------------------------------

This issue has been migrated to [issue 
#18291|https://github.com/apache/arrow/issues/18291] on GitHub. Please see the 
[migration documentation|https://github.com/apache/arrow/issues/14542] for 
further details.

> [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
(v8.20.10#820010)

Reply via email to