waynexia opened a new issue #570:
URL: https://github.com/apache/arrow-rs/issues/570


   **Describe the bug**
   The `PartialEq` impl on `ListArray` will ignore some differences.
   
   **To Reproduce**
   
   [This 
case](https://github.com/waynexia/arrow-rs/blob/7f6ce9299bc3a51665a26ef5da788f1e627e9be5/arrow/src/compute/kernels/sort.rs#L2421-L2436)
 should fail but not.
   
   **Expected behavior**
   The above case fail.
   
   **Additional context**
   I noticed this from [this test 
case](https://github.com/waynexia/arrow-rs/blob/7f6ce9299bc3a51665a26ef5da788f1e627e9be5/arrow/src/compute/kernels/sort.rs#L2357-L2366)
 in the master branch, which is wrong but can pass.
   
   I think the root cause is when comparing two list arrays, the [children's 
bitmap](https://github.com/waynexia/arrow-rs/blob/7f6ce9299bc3a51665a26ef5da788f1e627e9be5/arrow/src/array/equal/list.rs#L130-L134)
 were miscalculated leaving the remaining procedure to recognize some 
differences as null.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to