Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-13855

[C++] [Python] Add support for exporting extension types

    XMLWordPrintableJSON

Details

    Description

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

      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)
      

      would not raise

      pyarrow.lib.ArrowNotImplementedError: Exporting extension<arrow.py_extension_type<UuidType>> array not supported
      

      Attachments

        Issue Links

          Activity

            People

              apitrou Antoine Pitrou
              jorgecarleitao Jorge Leitão
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m