ypomortsev commented on issue #54920:
URL: https://github.com/apache/arrow/issues/54920#issuecomment-6350177173

   Right, the signed implementation can use the fact that valid signed values 
are the same bitwise as unsigned, e.g. pseudocode
   ```python
   signed_idx = pa.array([0, 1, 2, 3], pa.int32())
   if pc.min(signed_idx) >= 0:
       raise ArrowIndexError
   unsigned_idx = pa.view(signed_idx, pa.uint32())
   return pc.inverse_permutation(unsigned_idx)
   ```


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