You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/01/23 17:10:25 UTC
[GitHub] [arrow-rs] tustvold opened a new issue #1231: Bitmap Length Validation is Incorrect
tustvold opened a new issue #1231:
URL: https://github.com/apache/arrow-rs/issues/1231
**Describe the bug**
Noticed whilst testing #1230, the bitmask length validation confuses byte length and bit length.
**To Reproduce**
```
#[test]
fn test_validate_bitmask_length() {
let data = MutableBuffer::from_len_zeroed(9 * 4).into();
let nulls = MutableBuffer::new_null(1).into();
let err = ArrayData::try_new(
DataType::Int32,
9,
Some(9),
Some(nulls),
0,
vec![data],
vec![],
)
.unwrap_err()
.to_string();
assert!(
err.contains("null_bit_buffer size too small. got 1 needed 2"),
"{}",
err
)
}
```
**Expected behavior**
The above test should pass
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-rs] alamb closed issue #1231: Bitmap Length Validation is Incorrect
Posted by GitBox <gi...@apache.org>.
alamb closed issue #1231:
URL: https://github.com/apache/arrow-rs/issues/1231
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-rs] alamb closed issue #1231: Bitmap Length Validation is Incorrect
Posted by GitBox <gi...@apache.org>.
alamb closed issue #1231:
URL: https://github.com/apache/arrow-rs/issues/1231
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org