Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-10042

[Rust] Buffer equalities may be incorrect

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.1
    • 3.0.0
    • Rust

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              carols10cents Carol Nichols
              jorgecarleitao Jorge Leitão
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 4h 40m
                  4h 40m

                  Slack

                    Issue deployment