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

[Rust] Inconsistent behaviour with casting sliced primitive array to list array

    XMLWordPrintableJSON

Details

    Description

      csun I was going through the C++ cast implementation to see if I've missed anything, and I noticed that ListCastKernel (https://github.com/apache/arrow/blob/master/cpp/src/arrow/compute/kernels/cast.cc#L665) doesn't support casting non-zero-offset arrays. So I investigated what happens in Rust ARROW-4865. I found an inconsistency where inheriting the incoming array's offset could lead us to read invalid data.

      I tried fixing it, but found that a buffer that I expected to be invalid was being returned as valid, but returning invalid data.

      I've currently disabled casting primitive to array where the offset is not zero, and I'd like to wait for ARROW-4853 so I can see how sliced lists behave, and fix this inconsistency. That might only happen in 0.14, so I'm fine with that.

      Attachments

        Issue Links

          Activity

            People

              nevi_me Neville Dipale
              nevi_me Neville Dipale
              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 - 0.5h
                  0.5h