[ 
https://issues.apache.org/jira/browse/ARROW-886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16110778#comment-16110778
 ] 

Emilio Lahr-Vivaz commented on ARROW-886:
-----------------------------------------

That would probably be fine. My use case is:

1. Create a parent vector (NullableMapVector) with several children of 
different types (some fixed width, some variable width)
2. Write an unknown number of elements to the vectors, using the child vector 
mutators

For the variable-width vectors, I'm using `mutator.setSafe`, as there is no 
other way to guarantee sufficient size (to my knowledge). But for the fixed 
with vectors, I'd like to check size once on the parent, then expand them all 
as needed, instead of having to use `.setSafe` for every write. Having a way to 
externally grow a vector (outside of setSafe) seems like it would be useful any 
time you don't know the number of elements you're writing up front.

> VariableLengthVectors don't reAlloc offsets
> -------------------------------------------
>
>                 Key: ARROW-886
>                 URL: https://issues.apache.org/jira/browse/ARROW-886
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Java - Vectors
>    Affects Versions: 0.3.0
>            Reporter: Emilio Lahr-Vivaz
>            Assignee: Emilio Lahr-Vivaz
>             Fix For: 0.3.0
>
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to