amol- commented on a change in pull request #11185:
URL: https://github.com/apache/arrow/pull/11185#discussion_r727152315



##########
File path: python/pyarrow/tests/test_array.py
##########
@@ -2746,6 +2746,52 @@ def test_array_masked():
     assert arr.type == pa.int64()
 
 
+def test_array_supported_masks():
+    # ARROW-13883
+    arr = pa.array([4, None, 4, 3],
+                   mask=pa.array([False, True, False, True]))
+    assert arr.to_pylist() == [4, None, 4, None]
+
+    arr = pa.array([4, None, 4, 3],
+                   mask=[False, True, False, True])
+    assert arr.to_pylist() == [4, None, 4, None]
+
+    arr = pa.array([4, 3, None, 3],
+                   mask=[False, True, False, True])
+    assert arr.to_pylist() == [4, None, None, None]
+

Review comment:
       Isn't that the standard case we already supported? Seems to be tested 
already, for example in `test_array_masked`




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to