You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "zanmato1984 (via GitHub)" <gi...@apache.org> on 2025/10/15 17:01:22 UTC

Re: [I] [C++][Compute] Function `if_else` emits wrong results for chunked inputs [arrow]

zanmato1984 commented on issue #47825:
URL: https://github.com/apache/arrow/issues/47825#issuecomment-3407436127

   This particular chunking eventually goes down into the following path:
   https://github.com/apache/arrow/blob/541cba859c3cdb4cc6cb3f456aaae79f67c7d57d/cpp/src/arrow/util/bitmap_ops.cc#L376-L379
   with `left_offset == right_offset == out_offset == 1`. Then the byte-wise bit op overrides bit zero.
   
   I think the aligned bit op should only be performed when `left_offset == right_offset == out_offset == 0` (instead of only requiring they are congruent modulo 8). @pitrou what do you think?


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