arrow-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Li Jin (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ARROW-485) [Java] Users are required to initialize VariableLengthVectors.offsetVector before calling VariableLengthVectors.mutator.getSafe
Date Sat, 14 Jan 2017 06:41:26 GMT

     [ https://issues.apache.org/jira/browse/ARROW-485?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Li Jin updated ARROW-485:
-------------------------
    Priority: Minor  (was: Major)

> [Java] Users are required to initialize VariableLengthVectors.offsetVector before calling
VariableLengthVectors.mutator.getSafe 
> --------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ARROW-485
>                 URL: https://issues.apache.org/jira/browse/ARROW-485
>             Project: Apache Arrow
>          Issue Type: Improvement
>            Reporter: Li Jin
>            Priority: Minor
>
> https://github.com/apache/arrow/blob/master/java/vector/src/main/codegen/templates/VariableLengthVectors.java#L492
> Here VariableLengthVectors.getMutator().setSafe() calls:
> {code}
> offsetVector.getAccessor().get(index)
> {code}
>  however, index 0 of offsetVector (which is always 0) is not initialized by VariableLengthVectors.
> As a result, user of the VariableLengthVectors needs to manually initialize 
> the class by calling:
> {code}
> VariableLengthVectors.getOffsetVector().getMutator().setSafe(0, 0)
> {code}
> I wonder if this is necessary or should VariableLengthVectors initialize this for the
user



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message