[C++] Change BaseBinaryBuilder::GetView to return a view with a null data pointer for entries added via AppendNull
Open
Component: C++
Type: enhancement
- Dominant language
- C++
- Stars
- 17.1k
- Forks
- 4.3k
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 88
Description
### Describe the enhancement requested
`arrow::BaseBinaryBuilder::GetView` returns an empty string for data that is added via `arrow::BaseBinaryBuilder::AppendNull`. This behavior has already been identified as problematic in [issue 39635](https://github.com/apache/arrow/issues/39635), where null data is incorrectly treated as an empty string, as seen [here](https://github.com/apache/arrow/blob/12b3eda46a69fbc2e7f6f9c52be345b678f4baae/cpp/src/arrow/array/dict_internal.h#L169-L170).
### Component(s)
C++
Contributor guide
Assessment
This issue has not been assessed yet.