apache / apache/arrow

[C++] drop_null kernel ignores nulls when values is an union or a REE array

Open
#43,851 0 comments 0 reactions 0 assignees View on GitHub
Component: C++ Type: bug
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 13h
Merged PRs (30d)
88

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.