You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Jorge Leitão (Jira)" <ji...@apache.org> on 2021/09/01 21:44:00 UTC

[jira] [Created] (ARROW-13855) [C++] [PYthon] Add support for exporting extension types

Jorge Leitão created ARROW-13855:
------------------------------------

             Summary: [C++] [PYthon] Add support for exporting extension types
                 Key: ARROW-13855
                 URL: https://issues.apache.org/jira/browse/ARROW-13855
             Project: Apache Arrow
          Issue Type: New Feature
          Components: C++, Python
            Reporter: Jorge Leitão


It would be nice to be able to export extension fields and arrays, i.e.

{code:python}
import pyarrow

class UuidType(pyarrow.PyExtensionType):
    def __init__(self):
        super().__init__(pyarrow.binary(16))

    def __reduce__(self):
        return UuidType, ()

field = pyarrow.field("aa", UuidType())
field._export_to_c(pointer)
{code}

would not raise

{code:java}
pyarrow.lib.ArrowNotImplementedError: Exporting extension<arrow.py_extension_type<UuidType>> array not supported
{code}






--
This message was sent by Atlassian Jira
(v8.3.4#803005)