[C++][Dataset] Selecting a StringView column ("project") of a Dataset crashes
Open
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.
Using the same dataset created in the top post of https://github.com/apache/arrow/issues/39637:
```
import pyarrow.dataset as ds
dataset = ds.dataset("test_string_view/", format="ipc")
>>> dataset.schema
Out[26]:
a: int64
b: string_view
>>> dataset.to_table(columns=["a"])
pyarrow.Table
a: int64
----
a: [[1,2,3]]
>>> dataset.to_table(columns=["b"])
Segmentation fault (core dumped)
```
So selecting the integer column works fine, but when selecting the string_view column, it crashes.
### Component(s)
C++
Contributor guide
Assessment
This issue has not been assessed yet.