tustvold commented on issue #2568: URL: https://github.com/apache/arrow-rs/issues/2568#issuecomment-1230168260
There is an IEEE standard for total ordering of NaNs, I wonder if we could use that? Aside from being a standard, where I've not managed to find an authoritative SQL standard for floats, it can be implemented with relatively cheap bit manipulation, instead of more expensive branching. There is a built-in implementation [here](https://doc.rust-lang.org/std/primitive.f32.html#method.total_cmp). Theoretically the performance may be good enough that we can just always have this behaviour without needing a feature flag? What do you think? Also tagging @alamb -- 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]
