Skip to content

[Python] Cannot construct UuidArray from list of UuidScalars #48470

@flying-sheep

Description

@flying-sheep

Describe the bug, including details regarding any error messages, version, and platform.

Might be the same issue as #43855, feel free to close if this is the case.

>>> import pyarrow as pa
>>> pa.array([pa.scalar(b'1'*16, type=pa.uuid())], type=pa.uuid())
---------------------------------------------------------------------------
ArrowInvalid                              Traceback (most recent call last)
File …/pyarrow/array.pxi:375, in pyarrow.lib.array()
File …/pyarrow/array.pxi:46, in pyarrow.lib._sequence_to_array()
File …/pyarrow/error.pxi:155, in pyarrow.lib.pyarrow_internal_check_status()
File …/pyarrow/error.pxi:92, in pyarrow.lib.check_status()
ArrowInvalid: Cannot append scalar of type extension<arrow.uuid> to builder for type fixed_size_binary[16]

Version: 22.0.0
Platform: MacOS, but probably everywhere

Component(s)

Python

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions