You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/11/01 00:48:34 UTC

[GitHub] [arrow-datafusion] tustvold opened a new issue, #4051: Use f64::total_cmp instead of OrderedFloat

tustvold opened a new issue, #4051:
URL: https://github.com/apache/arrow-datafusion/issues/4051

   **Is your feature request related to a problem or challenge? Please describe what you are trying to do.**
   
   DataFusion uses OrderedFloat in various places to order floats, this is different from arrow-rs which makes use of https://doc.rust-lang.org/std/primitive.f32.html#method.total_cmp.
   
   **Describe the solution you'd like**
   
   Moving away from OrderedFloat will:
   
   * Ensure consistency
   * Eliminate a dependency
   
   **Describe alternatives you've considered**
   A clear and concise description of any alternative solutions or features you've considered.
   
   **Additional context**
   Add any other context or screenshots about the feature request 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.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-datafusion] comphead commented on issue #4051: Use f64::total_cmp instead of OrderedFloat

Posted by GitBox <gi...@apache.org>.
comphead commented on issue #4051:
URL: https://github.com/apache/arrow-datafusion/issues/4051#issuecomment-1302784857

   @tustvold please assign this to me


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


[GitHub] [arrow-datafusion] alamb commented on issue #4051: Use f64::total_cmp instead of OrderedFloat

Posted by GitBox <gi...@apache.org>.
alamb commented on issue #4051:
URL: https://github.com/apache/arrow-datafusion/issues/4051#issuecomment-1298768061

   Sounds like a great idea -- thanks @tustvold 
   
   I think this would likely be a good first project for someone as there is existing test coverage and should "just" be a matter of changing around some APIs


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


[GitHub] [arrow-datafusion] comphead commented on issue #4051: Use f64::total_cmp instead of OrderedFloat

Posted by GitBox <gi...@apache.org>.
comphead commented on issue #4051:
URL: https://github.com/apache/arrow-datafusion/issues/4051#issuecomment-1304342659

   @tustvold Looks like `OrderedFloat` also implements `Hash` and `Eq` for floats.
   `Hash` required for ScalarValue, `Eq` required for centroids. Do you want to make our own impl for Eq,Hash for `f64`?


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


[GitHub] [arrow-datafusion] tustvold closed issue #4051: Use f64::total_cmp instead of OrderedFloat

Posted by GitBox <gi...@apache.org>.
tustvold closed issue #4051: Use f64::total_cmp instead of OrderedFloat
URL: https://github.com/apache/arrow-datafusion/issues/4051


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


[GitHub] [arrow-datafusion] tustvold commented on issue #4051: Use f64::total_cmp instead of OrderedFloat

Posted by GitBox <gi...@apache.org>.
tustvold commented on issue #4051:
URL: https://github.com/apache/arrow-datafusion/issues/4051#issuecomment-1304342993

   I added a HashValue trait in hash_utils.rs we can likely use / make public


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