arrow-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Lemire (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ARROW-273) Lists use unsigned offset vectors instead of signed (as defined in the spec)
Date Fri, 26 Aug 2016 13:23:21 GMT

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

Daniel Lemire commented on ARROW-273:
-------------------------------------

If the max value is going to be 2^31-1, then I submit to you that you have an UINT31.

To be precise, in C you might define it as

{code:c}
typedef unsigned int __attribute__ ((bitwidth(31))) uint31;
{code}

> Lists use unsigned offset vectors instead of signed (as defined in the spec)
> ----------------------------------------------------------------------------
>
>                 Key: ARROW-273
>                 URL: https://issues.apache.org/jira/browse/ARROW-273
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Java - Vectors
>            Reporter: Julien Le Dem
>
> The List vector defines it's offset vector as UInt4Vector. (unsigned int 34)
> According to the arrow spec it should be a signed int32.



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

Mime
View raw message