Skip to content

[Python] Cannot create RecordBatch with nested struct containing extension type #33059

Description

@asfimport

I'm running into the following issue:

pyarrow.lib.ArrowNotImplementedError: Unsupportedcasttoextension<vast.address<AddressType>> fromfixed_size_binary[16]

Use case: I want to create a record batch that contains this type:

pa.struct([("address", AddressType()), ("length", pa.uint8())])

Here, AddressType is an extension type that models an IP address ({}pa.binary(16){}).

Please find attached a self-contained example that illustrates the issue.

Environment: macOS 12.5.1 on an Apple M1 Ultra.
Reporter: Matthias Vallentin / @mavam

Original Issue Attachments:

Note: This issue was originally created as ARROW-17839. Please see the migration documentation for further details.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions