k-ishizaka commented on issue #41479:
URL: https://github.com/apache/arrow/issues/41479#issuecomment-2333520096

   I have encountered the same problem. 
   
   I think this problem is caused by the shortcut in if_else kernel when left 
is invalid.
   
https://github.com/apache/arrow/blob/apache-arrow-17.0.0/cpp/src/arrow/compute/kernels/scalar_if_else.cc#L740-L750
   
   This shortcut is not safe when right is a chunk of other larger array. In 
this case, offset of right might starts from the middle of larger array. 
Because this shortcut copies value of right to value of output, offset of 
output should start from zero, but just a copy of right is used.


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