You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Pindikura Ravindra (JIRA)" <ji...@apache.org> on 2019/08/12 08:55:00 UTC

[jira] [Resolved] (ARROW-6200) [Java] Method getBufferSizeFor in BaseRepeatedValueVector/ListVector not correct

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

Pindikura Ravindra resolved ARROW-6200.
---------------------------------------
       Resolution: Fixed
    Fix Version/s: 0.15.0

Issue resolved by pull request 5060
[https://github.com/apache/arrow/pull/5060]

> [Java] Method getBufferSizeFor in BaseRepeatedValueVector/ListVector not correct
> --------------------------------------------------------------------------------
>
>                 Key: ARROW-6200
>                 URL: https://issues.apache.org/jira/browse/ARROW-6200
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Java
>            Reporter: Ji Liu
>            Assignee: Ji Liu
>            Priority: Critical
>              Labels: pull-request-available
>             Fix For: 0.15.0
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> Currently, {{getBufferSizeFor}} in {{BaseRepeatedValueVector}} implemented as below:
> {code:java}
> if (valueCount == 0) {
>   return 0;
> }
> return ((valueCount + 1) * OFFSET_WIDTH) + vector.getBufferSizeFor(valueCount);
> {code}
> Here vector.getBufferSizeFor(valueCount) seems not right which should be
>  
> {code:java}
> int innerVectorValueCount = offsetBuffer.getInt(valueCount * OFFSET_WIDTH);
> vector.getBufferSizeFor(innerVectorValueCount)
> {code}
>  ListVector has the same problem.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)