[FEA] enhancement: not allow getData from ColumnVector of nested type
Open
feature request
Java
- Dominant language
- C++
- Stars
- 9.8k
- Forks
- 1.1k
- Avg merge
- 3d 6m
- Merged PRs (30d)
- 278
Description
**Is your feature request related to a problem? Please describe.**
When getData from a ColumnVector of nested type such as LIST, the address will be null, and that will trigger a NPE.
**Describe the solution you'd like**
When calling getData API from a ColumnVector, check the data type, if it's nested type, throw exception to inform that no data could be get from a nested type ColumnVector.
**Additional context**
```scala
// assume this columnVector is of nested type : LIST
val data = columnVector.getData // null
val addr = childData.getAddress
```
Contributor guide
Assessment
This issue has not been assessed yet.