You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Mayur Srivastava (Jira)" <ji...@apache.org> on 2021/10/21 12:34:00 UTC

[jira] [Assigned] (ARROW-14418) [Java] Fix VectorAppender to correctly append data buffer for BitVector

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

Mayur Srivastava reassigned ARROW-14418:
----------------------------------------

    Assignee: Mayur Srivastava

> [Java] Fix VectorAppender to correctly append data buffer for BitVector
> -----------------------------------------------------------------------
>
>                 Key: ARROW-14418
>                 URL: https://issues.apache.org/jira/browse/ARROW-14418
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Java
>            Reporter: Mayur Srivastava
>            Assignee: Mayur Srivastava
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> VectorAppender uses type-width to copy the data buffer from delta vector to target vector. But, BitVector's type-width is 0, hence, its data buffer does not get copied to the target vector. The VectorAppender should be fixed to correctly handle data buffer copy for the BitVector.
> The current behavior is as follows:
>  # The validity vector is correctly appended.
>  # The data buffer is not appended.
>  This means that is the delta vector contains 1's (true values), they are appended as false.
> e.g.
> Target BitVector = \{1, 0, null}, and
> Delta BitVector = \{1, 0, null}, then
> the result is \{1, 0, null, 0, 0, null}. <== notice the fourth element is copied as 0 (or false).
> The correct result is \{1, 0, null, 1, 0, null}.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)