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

Deneche A. Hakim updated ARROW-246:
-----------------------------------
    Description: 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.  (was: UnionVector uses a 
UINT1Vector to store the types of every value in the vector., but it doesn't 
call allocateNew() on that vector. 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.)

> [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 - Vectors
>            Reporter: Deneche A. Hakim
>            Assignee: Deneche A. Hakim
>
> 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
(v6.3.4#6332)

Reply via email to