Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-3573

[Rust] with_bitset does not set valid bits correctly

    XMLWordPrintableJSON

Details

    Description

      The boundary check is off a little, `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.

      `write_bytes` is currently writing 1 instead of 255 to set all the bits when `val` is `true`

      Attachments

        Issue Links

          Activity

            People

              paddyhoran Paddy Horan
              paddyhoran Paddy Horan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m