[
https://issues.apache.org/jira/browse/ARROW-5299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17662320#comment-17662320
]
Rok Mihevc commented on ARROW-5299:
-----------------------------------
This issue has been migrated to [issue
#21764|https://github.com/apache/arrow/issues/21764] on GitHub. Please see the
[migration documentation|https://github.com/apache/arrow/issues/14542] for
further details.
> [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)