Skip to content

[C++][Python] Casting map causes pyarrow to crash #38553

Description

@rohanjain101

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

>>> import pyarrow as pa
>>> z = pa.array([{1: 2}], type=pa.map_(pa.int64(), pa.int64()))
>>> z.cast(pa.map_(pa.int32(), pa.int64()))
arrow/cpp/src/arrow/array/array_nested.cc:431: Check failed: _s.ok() Operation failed: ValidateChildData(data->child_data)
Bad status: Invalid: Map array keys array should have no nulls

Component(s)

Python

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions