You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Paddy Horan (JIRA)" <ji...@apache.org> on 2018/10/20 03:00:00 UTC

[jira] [Created] (ARROW-3573) [Rust] with_bitset does not set valid bits correctly

Paddy Horan created ARROW-3573:
----------------------------------

             Summary: [Rust] with_bitset does not set valid bits correctly
                 Key: ARROW-3573
                 URL: https://issues.apache.org/jira/browse/ARROW-3573
             Project: Apache Arrow
          Issue Type: Bug
          Components: Rust
            Reporter: Paddy Horan
            Assignee: Paddy Horan


The boundary check is off a little, {color:#333333}`MutableBuffer::new(64).with_bitset(64, false);` will fail.  This issue only happens if the arguments to `new` and `with_bitset` are the same and a multiple of 64.
{color}

{color:#333333}`write_bytes` is currently writing 1 instead of 255 to set all the bits when `val` is `true`{color}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)