You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Andrew Lamb (Jira)" <ji...@apache.org> on 2020/11/10 22:57:00 UTC

[jira] [Resolved] (ARROW-10042) [Rust] Buffer equalities may be incorrect

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

Andrew Lamb resolved ARROW-10042.
---------------------------------
    Fix Version/s: 3.0.0
       Resolution: Fixed

Issue resolved by pull request 8590
[https://github.com/apache/arrow/pull/8590]

> [Rust] Buffer equalities may be incorrect
> -----------------------------------------
>
>                 Key: ARROW-10042
>                 URL: https://issues.apache.org/jira/browse/ARROW-10042
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Rust
>    Affects Versions: 1.0.1
>            Reporter: Jorge Leitão
>            Assignee: Carol Nichols
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.0.0
>
>          Time Spent: 4h 40m
>  Remaining Estimate: 0h
>
> Two (byte) buffers are equal if their contents are equal.
> However, currently, {{BufferData}} comparison ({{PartialEq}}) uses its {{capacity}} as part of the comparison. Therefore, two slices are considered different even when their content is the same but the corresponding {{BufferData}} has a different capacity.
> Since this equality is used by {{Buffer}}'s equality, which is used by all our arrays, currently arrays are different when their contents are the same but the underlying capacity is different. I am not sure that this is what we want.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)