We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
I would expect the following test case to pass. In both arrays the second element is marked as null and so they should compare equal.
#[test] fn test_list_array_equal() { let mut builder = ListBuilder::new(Int64Builder::new(10)); builder.values().append_value(1).unwrap(); builder.values().append_value(2).unwrap(); builder.values().append_value(3).unwrap(); builder.append(true).unwrap(); builder.append(false).unwrap(); let array1 = builder.finish(); let mut builder = ListBuilder::new(Int64Builder::new(10)); builder.values().append_value(1).unwrap(); builder.values().append_value(2).unwrap(); builder.values().append_value(3).unwrap(); builder.append(true).unwrap(); builder.values().append_null().unwrap(); builder.values().append_null().unwrap(); builder.append(false).unwrap(); let array2 = builder.finish(); assert_eq!(array1, array2); }
The output of the assert_eq also shows both sides the same:
assert_eq
assertion failed: `(left == right)` left: `ListArray [ PrimitiveArray<Int64> [ 1, 2, 3, ], null, ]`, right: `ListArray [ PrimitiveArray<Int64> [ 1, 2, 3, ], null, ]`
The text was updated successfully, but these errors were encountered:
Fix ListArray and StructArray equality (apache#626)
ecf753b
ArrayData
UnionArray
MapArray
Fix Null Mask Handling in ArrayData And UnionArray (#1589)
37085d2
* Fix ListArray and StructArray equality (#626) * Simplify null masking in equality comparisons Various UnionArray fixes (#1598) (#1596) (#1591) (#1590) Fix handling of null masks in ArrayData equality (#1599) * Miscellaneous fixes * Fix structure null equality * Review feedback
tustvold
Successfully merging a pull request may close this issue.
Describe the bug
I would expect the following test case to pass. In both arrays the second element is marked as null and so they should compare equal.
The output of the
assert_eq
also shows both sides the same:The text was updated successfully, but these errors were encountered: