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: Unsupported cast to extension<vast.address<AddressType>> from fixed_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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions