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



##########
File path: python/pyarrow/array.pxi
##########
@@ -222,9 +222,9 @@ def array(object obj, type=None, mask=None, size=None, 
from_pandas=None,
     if hasattr(obj, '__arrow_array__'):
         return _handle_arrow_array_protocol(obj, type, mask, size)
     elif _is_array_like(obj):
-        if mask is not None:
-            # out argument unused
-            mask = get_values(mask, &is_pandas_object)
+        if mask is not None and not _is_array_like(mask):
+            raise ValueError("Mask must be a numpy array "

Review comment:
       :+1:




-- 
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


Reply via email to