rohanjain101 opened a new issue, #34982:
URL: https://github.com/apache/arrow/issues/34982

   ### Describe the enhancement requested
   
   In the following example:
   
   ```
   >>> a = pa.array([1,2,3], type=pa.int8())
   >>> pa.compute.is_in(a, pa.array([255], type=pa.int64()))
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
     File "C:\ps_0310_is\lib\site-packages\pyarrow\compute.py", line 256, in 
wrapper
       return func.call(args, options, memory_pool)
     File "pyarrow\_compute.pyx", line 355, in pyarrow._compute.Function.call
     File "pyarrow\error.pxi", line 144, in 
pyarrow.lib.pyarrow_internal_check_status
     File "pyarrow\error.pxi", line 100, in pyarrow.lib.check_status
   pyarrow.lib.ArrowInvalid: Integer value 255 not in range: -128 to 127
   >>>
   ```
   
   It would be nice if this could return false instead of raising an error, 
given that its impossible for 255 to be in an int8 array. This would be more in 
line with isin in Pandas as well:
   
   ```
   >>> a = pd.Series([1,2,3], dtype="int8")
   >>> a.isin([255])
   0    False
   1    False
   2    False
   dtype: bool
   >>>
   ```
   
   
   ### Component(s)
   
   Python


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