You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "Ebraam-Ashraf (via GitHub)" <gi...@apache.org> on 2026/03/02 10:27:15 UTC

Re: [I] [C++][Python] if_else kernel creates invalid results with chunked array string inputs with non-aligned chunks [arrow]

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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org