-
Notifications
You must be signed in to change notification settings - Fork 4k
GH-46395: [C++][Statistics] Use EqualOptions for min and max in arrow::ArrayStatistics::Equals() #46422
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
|
@kou what is your view on |
|
It may be better that we add Could you start a discussion for this like #46396 ? |
|
I will open an issue for discussion soon |
afb535b to
663b645
Compare
|
@kou |
|
Thank you for your feedback, @kou — I'll look into it |
3dbecf1 to
a362b94
Compare
a362b94 to
1d6812d
Compare
|
Thank you for your feedback, @kou — I'll look into it |
|
@kou I apologize for my last commit — it seems I forgot to apply some of the notes you mentioned. |
3ff6117 to
d661877
Compare
replace allow_atol to use_atol with relevant changes move type alias declaration for ValueType into anonymous namesapce comment == and != for operator and remove default options clear comments test and comment regarding different ValueType breakdown TestEqualityDoubleValues test case into several test cases
d661877 to
e06599f
Compare
kou
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
|
After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit 0e5249b. There were 72 benchmark results with an error:
There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 4 possible false positives for unstable benchmarks that are known to sometimes produce them. |
… arrow::ArrayStatistics::Equals() (apache#46422) ### Rationale for this change `arrow::ArrayStatistics::Equals` does not handle double values for `ArrayStatistics::ValueType` correctly ### What changes are included in this PR? Add `arrow::EqualOptions` to `arrow::ArrayStatistics::Eqauls()` Add `arrow::ArrayStatisticsEqauls()` Add `EqualOptions::use_atol_` Add `EqualOptions::use_atol()` Add `EqualOptions::use_atol(bool v)` ### Are these changes tested? Yes, I ran the relevant unit tests. ### Are there any user-facing changes? Yes. Add `arrow::ArrayStatisticsEqauls()` Add `EqualOptions::use_atol()` Add `EqualOptions::use_atol(bool v)` * GitHub Issue: apache#46395 Authored-by: Arash Andishgar <arashandishgar1@gmail.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Rationale for this change
arrow::ArrayStatistics::Equalsdoes not handle double values forArrayStatistics::ValueTypecorrectlyWhat changes are included in this PR?
Add
arrow::EqualOptionstoarrow::ArrayStatistics::Eqauls()Add
arrow::ArrayStatisticsEqauls()Add
EqualOptions::use_atol_Add
EqualOptions::use_atol()Add
EqualOptions::use_atol(bool v)Are these changes tested?
Yes, I ran the relevant unit tests.
Are there any user-facing changes?
Yes.
Add
arrow::ArrayStatisticsEqauls()Add
EqualOptions::use_atol()Add
EqualOptions::use_atol(bool v)