[
https://issues.apache.org/jira/browse/ARROW-5299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benjamin Kietzman resolved ARROW-5299.
--------------------------------------
Resolution: Fixed
Resolved as a drive by in pull 4278
https://github.com/apache/arrow/pull/4278/files#diff-651c90e7833d833bab85492c313bf3feR587
> [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
> Priority: Minor
>
> 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)