shu-kitamura commented on PR #46732:
URL: https://github.com/apache/arrow/pull/46732#issuecomment-2952675187

   Thanks!
   
   I moved test `test_slicing_with_non_trivial_step()` under 
`test_array_slice_negative_step()`.
   
   
   The failure of the test `test_array_slice_negative_step()` is not yet 
resolved.
   You're right, it seems that the test fails when `arrow_obj.take(indices)` is 
fed an empty list.
   
   When using `np.arange(start, stop, step)`, an empty `ndarray` was fed to 
`arrow_obj.take(indices)`.
   But when using `list(range(start, stop, step))`, an empty `list` was fed to 
`arrow_obj.take(indices)`, which seems to cause test to fail.
   
   I don't understand why an empty ndarray is OK but an empty list is not. I'll 
look into it.
   


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