AlenkaF commented on code in PR #39516: URL: https://github.com/apache/arrow/pull/39516#discussion_r1446986682
########## python/pyarrow/tests/test_array.py: ########## @@ -1057,6 +1057,31 @@ def test_map_from_arrays(): assert result.equals(expected) + result = pa.MapArray.from_arrays(offsets, keys, items, pa.map_( + keys.type, + items.type + )) + assert result.equals(expected) + + pa.MapArray.from_arrays(offsets, keys, items, pa.map_( + keys.type, + # Bigger than the original i4, which is okay + pa.int32() + )) + assert result.equals(expected) Review Comment: Yeah, I think `result = ...` is missing in line 1066. And for the type-double-check, `pa.int32` and numpy `i4` should be same? If we were to use `pa.int64` the construction of a MapArray should not fail, but the assertion would, right? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org