[
https://issues.apache.org/jira/browse/ARROW-5610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16882039#comment-16882039
]
lidavidm commented on ARROW-5610:
---------------------------------
Hmm, to be frank, I haven't gotten a chance to evaluate the API yet, I'm just
going off of reading the implementation. I'll follow up once I do get a chance
to try it out. But I'm still not sure why the language that the type is defined
in should matter - I thought the idea is there is an abstract type, and you
implement it for each language, and right now the main limitation is that you
can't implement a Python type with an arbitrary name. (i.e. I want a java
UuidType, which uses java's UUID class, to map seamlessly to a Python UuidType
using the uuid module).
But I suppose I should put up some code before I keep talking!
> [Python] Define extension type API in Python to "receive" or "send" a foreign
> extension type
> --------------------------------------------------------------------------------------------
>
> Key: ARROW-5610
> URL: https://issues.apache.org/jira/browse/ARROW-5610
> Project: Apache Arrow
> Issue Type: Improvement
> Components: Python
> Reporter: Wes McKinney
> Priority: Major
> Fix For: 1.0.0
>
>
> In work in ARROW-840, a static {{arrow.py_extension_type}} name is used.
> There will be cases where an extension type is coming from another
> programming language (e.g. Java), so it would be useful to be able to "plug
> in" a Python extension type subclass that will be used to deserialize the
> extension type coming over the wire. This has some different API requirements
> since the serialized representation of the type will not have knowledge of
> Python pickling, etc.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)