apache / apache/arrow-java

[Java] ListVector to return same UnionListWriter instead of returning new UnionListWriter

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

Description

`The {color:#FF0000}getWriter{color} {color:#4c9aff}ListVector{color} API should return same {color:#4c9aff}UnionListWriter {color:#172b4d}instead of returning new {color:#4c9aff}UnionListWriter{color} everytime.{color}{color`}

**Reporter**: [Shivam Kapoor](https://issues.apache.org/jira/browse/ARROW-17209)

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

Contributor guide

Open the contributing guide

Research direction

Start by locating the ListVector getWriter API and its UnionListWriter implementation. Check how repeated getWriter calls are currently handled and identify existing tests for ListVector writers; done means repeated calls return the same UnionListWriter instance without breaking writer behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.