osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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)