tustvold commented on issue #5426:
URL: https://github.com/apache/arrow-rs/issues/5426#issuecomment-2120832436

   I've remembered why the `Compare` formulation doesn't work.
   
   Take the example of comparing two ListArray elements of `[null, 1]` and 
`[null, 1]`. In the distinct case the result should be equality, but in the 
equality case the result should be null. Now you could just return 
`Compare::BothNull` in this case, but what should you return for `[null, 1]` vs 
`[null, 2]`, returning `Compare::BothNull` would be incorrect, but as would 
`Compare::Less`


-- 
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