[
https://issues.apache.org/jira/browse/ARROW-2342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16409741#comment-16409741
]
ASF GitHub Bot commented on ARROW-2342:
---------------------------------------
pitrou opened a new pull request #1780: ARROW-2342: [Python] Allow pickling
more types
URL: https://github.com/apache/arrow/pull/1780
Several types (bool, timestamp with a non-None timezone, floats) were
unpicklable.
Based on PR #1778.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> [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)