felipecrv opened a new issue, #43851: URL: https://github.com/apache/arrow/issues/43851
### Describe the bug, including details regarding any error messages, version, and platform. Unions and run-end-encoded don't have validity bitmaps (`buffers[0]`), so they are sometimes treated as "array without nulls". This happens in the `drop_null` function: so even when unions have nulls, the input -- `values` -- is returned unfiltered. ### Component(s) C++ -- 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: issues-unsubscr...@arrow.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org