[ https://issues.apache.org/jira/browse/ARROW-5299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rok Mihevc updated ARROW-5299: ------------------------------ External issue URL: https://github.com/apache/arrow/issues/21764 > [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: Ben Kietzman > Assignee: Ben Kietzman > Priority: Minor > Fix For: 0.14.0 > > > 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 (v8.20.10#820010)