Ebraam-Ashraf commented on issue #49410:
URL: https://github.com/apache/arrow/issues/49410#issuecomment-3983484683

   hi @jorisvandenbossche 
   
   I was looking into the bug in #41479 and the related pandas issue you 
mentioned I understood the problem and traced it to the null shortcuts in 
scalar_if_else.cc specifically the ASA and AAS paths
   both shortcuts memcpy the offsets as is and copy the data buffer starting 
from byte 0 but they do not handle the case where the array is a slice with 
offsets[0] != 0 which results in corrupted output
   
   I see a possible fix would be to subtract offsets[0] from all copied offsets 
and copy the data starting from data + offsets[0] in both paths so the output 
is normalized to zero like other slice handling code
   
   can i open a PR for this ?


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