Uh oh!
There was an error while loading. Please reload this page.
GH-46395: [C++][Statistics] Use EqualOptions for min and max in arrow::ArrayStatistics::Equals() - #46422
Conversation
andishgar
commented
May 13, 2025
@kou what is your view on |
kou
commented
May 14, 2025
It may be better that we add Could you start a discussion for this like #46396 ? |
andishgar
commented
May 14, 2025
I will open an issue for discussion soon |
afb535b to
663b645Compareandishgar
commented
May 30, 2025
@kou |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
andishgar
commented
May 31, 2025
Thank you for your feedback, @kou — I'll look into it |
3dbecf1 to
a362b94Comparea362b94 to
1d6812dCompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
andishgar
commented
Jun 2, 2025
Thank you for your feedback, @kou — I'll look into it |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
andishgar
commented
Jun 5, 2025
@kou I apologize for my last commit — it seems I forgot to apply some of the notes you mentioned. |
3ff6117 to
d661877Comparereplace 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
e06599fCompareAfter 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)