apache / apache/arrow

[C++] ArraySpan::IsNull/IsValid implementations are incorrect for union types

Open
#32,172 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 18h
Merged PRs (30d)
91

Description

Because the first buffer is not a validity bitmap. Follow up work from ARROW-16756

**Reporter**: [Wes McKinney](https://issues.apache.org/jira/browse/ARROW-16845) / @wesm
#### Related issues:
- [[C++] Improve array expression and kernel evaluation performance on small inputs](https://github.com/apache/arrow/issues/20277) (relates to)

**Note**: *This issue was originally created as [ARROW-16845](https://issues.apache.org/jira/browse/ARROW-16845). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*

Contributor guide

Open the contributing guide

Research direction

Start by tracing the C++ ArraySpan::IsNull and IsValid implementations and read the follow-up context from ARROW-16756. Verify how union types represent their first buffer, then add or update coverage showing that validity checks no longer treat that buffer as a validity bitmap.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
data
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.