-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-11043: [C++] Add "is_nan" kernel #9023
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
pitrou
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR @bu2 ! This looks basically ok, here are a number of small comments.
Fix following reviewer's comment: * iff not a typo, * test for nulls, * update docs/source/cpp/compute.rst Then: * apply clang-format to pass CI lint check.
Fix following reviewer's comment:
* update docs/source/cpp/compute.rst
Fix following reviewer's comment: * Update "since version number" * Improve kernel documentation (remove "according to std::isnan()") * Improve code style (replace typedef aliases by using aliases) * Minor fix (float32 literal without f suffix)
Fix following reviewer's comment: * Move <cmath> include from common.h to kernel source.
|
PR rebased! |
pitrou
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, thank you
|
Thanks a lot @bu2 ! |
|
Thanks to @cyb70289 for the initial review. |
Add a "is_nan" kernel to check for NaN "equality" for FloatArray and DoubleArray (based on std::isnan()). The kernel signature is based on "is_null" kernel so I put my code in arrow/compute/kernels/scalar_validity.cc... but the implementation take some inspiration from "compare" kernel.