You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Rok Mihevc (Jira)" <ji...@apache.org> on 2023/01/11 07:08:03 UTC

[jira] [Commented] (ARROW-246) [Java] UnionVector doesn't call allocateNew() when creating it's vectorType

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

Rok Mihevc commented on ARROW-246:
----------------------------------

This issue has been migrated to [issue #15588|https://github.com/apache/arrow/issues/15588] on GitHub. Please see the [migration documentation|https://github.com/apache/arrow/issues/14542] for further details.

> [Java] UnionVector doesn't call allocateNew() when creating it's vectorType
> ---------------------------------------------------------------------------
>
>                 Key: ARROW-246
>                 URL: https://issues.apache.org/jira/browse/ARROW-246
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Java
>            Reporter: Abdel Hakim Deneche
>            Assignee: Abdel Hakim Deneche
>            Priority: Major
>             Fix For: 0.1.0
>
>
> UnionVector uses a UINT1Vector to store the types of every value in the vector., but it doesn't call allocateNew() on that vector and more importantly zeroVector(). When we call setSafe() the 1st time (e.g. from PromotableVector.promoteToUnion()) it will re-allocate the vector but will fail to properly set it's content to 0. This can cause various failures when we try to access the value/type stored in the vector.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)