You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "jayzhan211 (via GitHub)" <gi...@apache.org> on 2024/05/20 23:31:26 UTC
Re: [I] Support Nested Arrays in Comparison Kernels [arrow-rs]
jayzhan211 commented on issue #5426:
URL: https://github.com/apache/arrow-rs/issues/5426#issuecomment-2121393337
> in the equality case the result should be null
Can we return `true` for the equality case for `[null, 1]` and `[null, 1]`? Why should not we consider `null` equal to `null`?
For `[null, 1]` and `[null, 2]`, I think it is reasonable to return Compare::Less for `<` op, true for `distinct`, and false for `eq`.
Why should we return `BothNull` for [null, 1] vs [null, 2].
I think the calculation is like
* [null,1] < [null, 2], compare elementwise, got `BothNull`, and `Less`. Iterate left to right, skip `BothNull` or `Eq`, so we return Less here.
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org