Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARROW-7405: [Java] ListVector isEmpty API is incorrect
Related to [ARROW-7405](https://issues.apache.org/jira/browse/ARROW-7405). Currently isEmpty API is always return false in BaseRepeatedValueVector, and its subclass ListVector did not overwrite this method. This will lead to incorrect result, for example, a ListVector with data [1,2], null, [], [5,6] should get [false, false, true, false] with this API, but now it would return [false, false, false, false]. This change implements `isEmpty(int index)` for a `ListVector` that will return `true` if the index is an empty list or a null value, and `false` otherwise. Closes #6044 from tianchen92/ARROW-7405 and squashes the following commits: 797f9b7 <tianchen> fix style and comments bbe35db <tianchen> treat null as empty 41e0ed5 <tianchen> resolve some comments 12810e4 <tianchen> ARROW-7405: ListVector isEmpty API is incorrect Authored-by: tianchen <niki.lj@alibaba-inc.com> Signed-off-by: Bryan Cutler <cutlerb@gmail.com>
- Loading branch information