>>> 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
Describe the bug, including details regarding any error messages, version, and platform.
Component(s)
Python