bjchambers opened a new issue #744:
URL: https://github.com/apache/arrow-rs/issues/744
**Describe the bug**
`length` kernel (for string length) doesn't work on sliced string arrays
containing null.
**To Reproduce**
Modify the existing tests to include null:
```
/// Tests with an offset
#[test]
fn bit_length_offsets() -> Result<()> {
let a = StringArray::from(vec![Some("hello"), Some(" "),
Some("world"), None]);
let b = a.slice(1, 3);
let result = bit_length(b.as_ref())?;
let result: &Int32Array = as_primitive_array(&result);
let expected = Int32Array::from(vec![Some(8), Some(40), None]);
assert_eq!(&expected, result);
Ok(())
}
```
**Expected behavior**
Test passes.
**Actual behavior**
Test does not 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]