You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Sutou Kouhei (JIRA)" <ji...@apache.org> on 2019/06/27 06:38:00 UTC

[jira] [Updated] (ARROW-5299) [C++] ListArray comparison is incorrect

     [ https://issues.apache.org/jira/browse/ARROW-5299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sutou Kouhei updated ARROW-5299:
--------------------------------
    Fix Version/s: 0.14.0

> [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
>             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
(v7.6.3#76005)