andishgar commented on code in PR #46422: URL: https://github.com/apache/arrow/pull/46422#discussion_r2123690699
########## cpp/src/arrow/array/statistics_test.cc: ########## @@ -96,6 +99,69 @@ TEST(ArrayStatisticsTest, TestEquality) { ASSERT_NE(statistics1, statistics2); statistics2.is_max_exact = true; ASSERT_EQ(statistics1, statistics2); + + // Test different ArrayStatistics::ValueType + statistics1.max = static_cast<uint64_t>(29); + statistics1.max = static_cast<int64_t>(29); + ASSERT_NE(statistics1, statistics2); +} +class TestEqualityDoubleValue : public ::testing::Test { + protected: + ArrayStatistics statistics1_; + ArrayStatistics statistics2_; + EqualOptions options_ = EqualOptions::Defaults(); +}; + +TEST_F(TestEqualityDoubleValue, ExactValue) { + ASSERT_EQ(statistics1_, statistics2_); Review Comment: Oops, sorry — it's redundant. -- 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-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org