You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
string array equal comparison fails to consider offsets #9323
Describe the bug
Two arrays compare equal if the characters are the same but with different offset lengths.
To Reproduce
use arrow::array::Array;
#[test]
fn string_cmp() {
let a = arrow::array::StringArray::from(vec![
Some("ab"),
Some("c"),
]);
let b = arrow::array::StringArray::from(vec![
Some("a"),
Some("bc"),
]);
assert!(a != b);
}
Expected behavior
Equality should fail because arrays are different.
Activity
jhorstmann commentedon Feb 1, 2026
Wow, good find. This bug seems to have existed for at least the last 5 years. I'll look into a fix.
Fix string array equality when the values buffer is the same and only…
Fix string array equality when the values buffer is the same and only…
[maintenance_57] Fix string array equality when the values buffer is …