apache / apache/arrow-java

[Java] ListVector's setValueCount does not set inner vector's value count correctly

Open
#338 4 comments 0 reactions 0 assignees View on GitHub
Type: bug
Dominant language
Java
Stars
94
Forks
152
Avg merge
3d 16h
Merged PRs (30d)
11

Description

In ListVector#setValueCount, we always compute data vector's value count based on lastSet - this is incorrect when valueCount is less than lastSet

**Reporter**: [Prudhvi Porandla](https://issues.apache.org/jira/browse/ARROW-8842) / @pprudhvi
#### PRs and other links:
- [GitHub Pull Request apache/arrow#7214](https://github.com/apache/arrow/pull/7214)

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

Contributor guide

Open the contributing guide

Research direction

Start at ListVector#setValueCount in the Apache Arrow Java source and review the linked pull request apache/arrow#7214 for the intended behavior. Trace how the data vector's value count is computed when valueCount is less than lastSet, then run the relevant ListVector tests if available. Done means the inner vector receives the correct count in that case.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
data-engineering
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.