kou commented on code in PR #46422:
URL: https://github.com/apache/arrow/pull/46422#discussion_r2118293177


##########
cpp/src/arrow/array/statistics.h:
##########
@@ -127,18 +128,20 @@ struct ARROW_EXPORT ArrayStatistics {
   /// \brief Whether the maximum value is exact or not
   bool is_max_exact = false;
 
-  /// \brief Check two statistics for equality
-  bool Equals(const ArrayStatistics& other) const {
-    return null_count == other.null_count && distinct_count == 
other.distinct_count &&
-           min == other.min && is_min_exact == other.is_min_exact && max == 
other.max &&
-           is_max_exact == other.is_max_exact;
-  }
-
-  /// \brief Check two statistics for equality
-  bool operator==(const ArrayStatistics& other) const { return Equals(other); }
-
-  /// \brief Check two statistics for not equality
-  bool operator!=(const ArrayStatistics& other) const { return !Equals(other); 
}

Review Comment:
   Ah, sorry. I forgot it.
   
   It seems that we can't use `ASSERT_EQ()`/`ASSERT_NE()` by removing 
`==`/`!=`. It shows that `==`/!=` may be convenient (not redundant). How about 
keeping them?



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

Reply via email to