Benjamin Kietzman created ARROW-5299:
----------------------------------------
Summary: [C++] ListArray comparison is incorrect
Key: ARROW-5299
URL: https://issues.apache.org/jira/browse/ARROW-5299
Project: Apache Arrow
Issue Type: New Feature
Components: C++
Reporter: Benjamin Kietzman
Assignee: Benjamin Kietzman
Equality comparison for ListArray accounts for offsets incorrectly, so slices
of ListArrays with identical offsets but differing values will sometimes
compare equal.
For example, the following test fails:
{code}
TEST_F(TestListArray, ValuesEquality) {
auto type = list(int32());
auto left = ArrayFromJSON(type, "[[1, 2], [3, null], [5], []]");
auto right = ArrayFromJSON(type, "[[1, 2], [3, null], [9], []]");
AssertArraysEqual(*left->Slice(2), *right->Slice(2));
}
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)